-- 作者:ajie5211
-- 发布时间:2018/8/1 10:02:00
--
找到方法了
Dim doc As New PrintDoc Dim rt As New prt.RenderTable \'定义一个新表格 rt.Cells(0,0).Text= "是" Dim a As New prt.RenderInputCheckBox a.CanSplitHorz = True a.ReadOnly = True \'a.Checked = True rt.Cells(0,1).Area.Style.FlowAlignChildren = prt.FlowAlignEnum.Center rt.Cells(0,1).Area.Children.Add(a) rt.Cells(0,2).Text= "否" Dim b As New prt.RenderInputCheckBox b.CanSplitHorz = True b.ReadOnly = True b.Checked = True rt.Cells(0,3).Area.Children.Add(b) doc.Body.Children.Add(rt) \'将表格加入到报表 doc.Preview()
|