设置一下行的高度
Rows = tbl.DataTable.Select("[单位名称] = '" & region(1) & "'and [班级] ='" & region(3) & "'and [年级代码] ='" & region(2) & "'and [考试名称] ='" & region(0) & "'")
For c As Integer = 0 To ColNames.Length - 1 '逐列设置和填入内
rt.Cells(0,c).Text = ColNames(c) '列名作为标题
rt.Cells(0,c).Style.TextAlignHorz = prt.AlignHorzEnum.Center
rt.Cells(0,c+2).Text = ColNames(c)
Dim han As Integer = Math.Floor(Rows.count/2)-1
For r As Integer = 0 To Rows.Count -1
If Rows.Count < 10 Then
rt.rows(r).height = 10
End If
If r<= han
rt.Cells(r+1,c).Text = Rows(r)(ColNames(c))
Else
rt.Cells(r-han,c+2).Text = Rows(r)(ColNames(c))
End If
Next
Next