以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- [求助]专业报表 去掉表格最后两行线 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=150760) |
-- 作者:wei0769 -- 发布时间:2020/6/6 17:50:00 -- [求助]专业报表 去掉表格最后两行线
Dim doc As New PrintDoc() \'定义一个报表 Dim rt As New prt.RenderTable() \'定义一个表格对象 rt.Style.TextAlignHorz = prt.AlignHorzEnum.Center rt.Rows(0).Height = 12 \'标题行高
rt.Cells(3,1).SpanCols = 4
rt.Cells(6,0).text = "尺码" rt.Cells(6,2).text = "尺码" rt.Cells(6,4).text = "尺码" rt.Cells(6,6).text = "尺码" \'rt.Rows(6).Style.TextAlignHorz = prt.AlignHorzEnum.Center
rt.cells(23,0).text = "收货单位" rt.cells(23,4).text = "送货单位" \'rt.Rows(24).Style.Borders.All = New prt.LineDef("0mm", Color.white) \'去掉第一行表格线
此主题相关图片如下:3.jpg |
-- 作者:有点蓝 -- 发布时间:2020/6/7 20:34:00 -- rt.Rows(23).Style.Borders.All = New prt.LineDef(Color.white) \'去掉第一行表格线 rt.cells(23,0).Style.Borders.All = New prt.LineDef(Color.white) rt.cells(23,4).Style.Borders.All = New prt.LineDef(Color.white) rt.Rows(24).Style.Borders.All = New prt.LineDef(Color.white) \'去掉第一行表格线 rt.cells(24,0).Style.Borders.All = New prt.LineDef(Color.white) rt.cells(24,4).Style.Borders.All = New prt.LineDef(Color.white) rt.Rows(22).Style.Borders.Bottom = New prt.Linedef \'增加第一行底线 |
-- 作者:wei0769 -- 发布时间:2020/6/8 8:31:00 -- 好的,等下试下 |
-- 作者:wei0769 -- 发布时间:2020/6/8 9:29:00 -- 加了代码,结果如下图.请看下是否用的用错
Dim doc As New PrintDoc() \'定义一个报表 Dim rt As New prt.RenderTable() \'定义一个表格对象 rt.Style.TextAlignHorz = prt.AlignHorzEnum.Center rt.Rows(0).Height = 12 \'标题行高
rt.Cells(3,1).SpanCols = 4
rt.Cells(6,0).text = "尺码" rt.Cells(6,2).text = "尺码" rt.Cells(6,4).text = "尺码" rt.Cells(6,6).text = "尺码" \'rt.Rows(6).Style.TextAlignHorz = prt.AlignHorzEnum.Center
rt.cells(23,0).text = "收货单位" rt.cells(23,4).text = "送货单位" \'rt.Rows(23).Style.Borders.All = New prt.LineDef("0mm", Color.white) \'去掉第23行表格线 rt.Rows(23).Style.Borders.All = New prt.LineDef(Color.white) \'去掉第一行表格线
[此贴子已经被作者于2020/6/8 9:32:26编辑过]
|
-- 作者:有点蓝 -- 发布时间:2020/6/8 9:52:00 -- 应该没有问题的,打印一张效果看看,或者试试改为 rt.Rows(22).Style.Borders.Bottom = New prt.Linedef(1,color.black) \'增加第一行底线
|
-- 作者:wei0769 -- 发布时间:2020/6/8 11:41:00 -- 此主题相关图片如下:3.jpg 此主题相关图片如下:4.jpg |
-- 作者:有点蓝 -- 发布时间:2020/6/8 11:47:00 -- 试试不要设置23行为all,做设置左。右和低边框:http://www.foxtable.com/webhelp/topics/1200.htm |
-- 作者:wei0769 -- 发布时间:2020/6/8 13:29:00 --
Dim doc As New PrintDoc() \'定义一个报表 Dim rt As New prt.RenderTable() \'定义一个表格对象 rt.Style.TextAlignHorz = prt.AlignHorzEnum.Center rt.Rows(0).Height = 12 \'标题行高
rt.Cells(3,1).SpanCols = 4 rt.Cells(4,1).SpanCols = 4
rt.Cells(6,0).text = "尺码" rt.Cells(6,2).text = "尺码" rt.Cells(6,4).text = "尺码" rt.Cells(6,6).text = "尺码"
Dim tb As Table = Tables("送货主表.送货明细") For c As Integer = 0 To 3
rt.Rows(23).Style.Borders.All = New prt.LineDef("0mm", Color.white) \'去掉第23行表格线 rt.Rows(23).Style.Borders.Top = New prt.Linedef \'补回23行顶线 rt.Rows(24).Style.Borders.All = New prt.LineDef("0mm", Color.white) \'去掉第24行表格线 \'\'rt.Rows(23).Style.Borders.vert = New prt.LineDef("0mm", Color.white) \'去掉第一行表格线
\'
rt.cells(23,0).text = "收货单位" rt.cells(23,4).text = "送货单位" \'rt.Rows(23).Style.Borders.All = New prt.LineDef("0mm", Color.white) \'去掉第23行表格线
|