落漠 发表于 2012-11-19 11:08:00

网格线在打印时无法显示出来

添加表格后,网格线在打印时无法正常显示,需要通过设置Format Table属性进行设置,我想问一下,这个属性如何在代码中设置。

iceman 发表于 2012-11-19 14:17:00

回复 1楼落漠的帖子

你好,设置方法如下:

this.textControl1.Tables.Add(10, 10, 11);
            TXTextControl.Table tb = this.textControl1.Tables.GetItem(11);

            foreach (TXTextControl.TableCell cell in textControl1.Tables.GetItem(11).Cells)
            {
                cell.CellFormat.LeftBorderWidth = 1;
                cell.CellFormat.RightBorderWidth = 1;
                cell.CellFormat.TopBorderWidth = 1;
                cell.CellFormat.BottomBorderWidth = 1;
            }

落漠 发表于 2012-11-19 16:26:00

谢谢。。。

iceman 发表于 2012-11-19 16:40:00

回复 3楼落漠的帖子

:itwn:
页: [1]
查看完整版本: 网格线在打印时无法显示出来