以文本方式查看主题

-  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=186867)

--  作者:myjht
--  发布时间:2023/6/4 11:37:00
--  请教,网格线的竖线怎么隐藏
请教,网格线的竖线怎么隐藏

\'设置表格样式
            rt.CellStyle.Spacing.All = 1 \'单元格内容缩进1毫米
            rt.Style.Spacing.Bottom = 1 \'和下一个资料卡的距离是5毫米
            rt.Style.GridLines.All = New prt.Linedef \'设置网格线
            
            rt.Rows(0).Style.Borders.All = New prt.LineDef("0mm", Color.white) \'去掉第二行的网格线
            rt.Rows(1).Style.Borders.All = New prt.LineDef("0mm", Color.white) \'去掉第二行的网格线
            rt.Rows(2).Style.Borders.All = New prt.LineDef("0mm", Color.white) \'去掉第二行的网格线
            rt.Rows(2).Style.Borders.Bottom = New prt.Linedef \'恢复第二行底端的网格线


图片点击可在新窗口打开查看此主题相关图片如下:微信图片_20230604113456.png
图片点击可在新窗口打开查看

--  作者:有点蓝
--  发布时间:2023/6/4 19:52:00
--  
遍历这几行的单元格,逐个设置边框