找回密码
 立即注册

QQ登录

只需一步,快速开始

xjy

注册会员

4

主题

4

帖子

54

积分

注册会员

积分
54
  • 50

    金币

  • 主题

  • 帖子

最新发帖
xjy
注册会员   /  发表于:2013-6-19 11:16  /   查看:4955  /  回复:1
在编辑器插入表格默认的表格颜色为灰色,在生成的pdf中不显示表格,有没有办法默认插入的表格颜色显示为黑色,在生成的pdf中显示表格

1 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2013-6-19 14:59:00
沙发
回复 1楼xjy的帖子

请使用以下代码测试:

  1. TXTextControl.TableCellFormat format = new TXTextControl.TableCellFormat();
  2.             format.BottomBorderColor = Color.Black;
  3.             format.TopBorderColor = Color.Black;
  4.             format.RightBorderColor = Color.Black;
  5.             format.LeftBorderColor = Color.Black;
  6.             format.BottomBorderWidth = 1;
  7.             format.TopBorderWidth = 1;
  8.             format.LeftBorderWidth = 1;
  9.             format.RightBorderWidth = 1;

  10.             this.textControl1.Tables.Add(3, 3, 20);

  11.             foreach (TXTextControl.TableCell item in this.textControl1.Tables.GetItem(20).Cells)
  12.             {
  13.                 item.CellFormat = format;
  14.             }
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部