找回密码
 立即注册

QQ登录

只需一步,快速开始

落漠

中级会员

6

主题

10

帖子

698

积分

中级会员

积分
698

活字格认证

落漠
中级会员   /  发表于:2012-11-19 11:08  /   查看:5901  /  回复:3
添加表格后,网格线在打印时无法正常显示,需要通过设置Format Table属性进行设置,我想问一下,这个属性如何在代码中设置。

3 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2012-11-19 14:17:00
沙发
回复 1楼落漠的帖子

你好,设置方法如下:

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

  3.             foreach (TXTextControl.TableCell cell in textControl1.Tables.GetItem(11).Cells)
  4.             {
  5.                 cell.CellFormat.LeftBorderWidth = 1;
  6.                 cell.CellFormat.RightBorderWidth = 1;
  7.                 cell.CellFormat.TopBorderWidth = 1;
  8.                 cell.CellFormat.BottomBorderWidth = 1;
  9.             }
复制代码
回复 使用道具 举报
落漠
中级会员   /  发表于:2012-11-19 16:26:00
板凳
谢谢。。。
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-11-19 16:40:00
地板
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部