我测试没问题。
Dim doc As New PrintDoc '定义一个报表
Dim rt As New prt.RenderTable() '定义一个表格对象
doc.Body.Children.Add(rt) '将表格对象加入到报表中
rt.Style.GridLines.All = New prt.Linedef '设置网格线
'下面的代码向表格中填入值
For r As Integer = 0 To 5
For c As Integer = 0 To 5
rt.Cells(r, c).Text = r & "," & c '
Next
Next
rt.Cols(0).Style.TextAlignHorz = prt.AlignHorzEnum.left
rt.Style.TextAlignHorz = prt.AlignHorzEnum.Right '所有文本内容靠右对齐
doc.Preview() '预览报表