c# - Textcontrol 不使用单元格边框制作第二页
问题描述
我有代码可以制作具有相同布局的多个页面。只有第一页是正确的。其他页面不再显示文本,并且单元格边框未绘制。无法处理边框或单元格。
int tableID = 10;
textControl.Tables.Add(4, 8, tableID);
TXTextControl.Table table = textControl.Tables.GetItem(tableID);
table.Cells.GetItem(1, 1).Text = "Rooster";
table.Cells.GetItem(1, 2).Text = "Maandag";
table.Cells.GetItem(1, 3).Text = "Dinsdag";
table.Cells.GetItem(1, 4).Text = "Woensd";
table.Cells.GetItem(1, 5).Text = "Donderd";
table.Cells.GetItem(1, 6).Text = "Vrijdag";
table.Cells.GetItem(1, 7).Text = "Zaterdag";
table.Cells.GetItem(1, 8).Text = "Zondag";
table.Cells.GetItem(2, 1).Text = "Ochtend";
table.Cells.GetItem(3, 1).Text = "Middag";
table.Cells.GetItem(4, 1).Text = "Avond";
SetCellFormat(table);
textControl.Selection.Bold = true;
textControl.Selection.ParagraphFormat.Alignment = TXTextControl.HorizontalAlignment.Center;
textControl.Selection.Length = 0;
这是我在这里的第一篇文章,希望我做得很好。对不起英语不好。
解决方案
推荐阅读
- javascript - Fullpage.js - 自定义按钮不会更新 URL 中的锚标记
- python - 从csv python将txt文件保存在目录中
- mongodb - Mongodb findAndModify - 读取未提交?
- jwt - 微服务互通与权限
- python - 执行使用 pyinstaller 创建的 .exe 时找不到 Psycopg2
- jquery - jQuery 使用选择器计算多个文本字段
- vb.net - 错误:对非共享成员的引用需要对象引用
- c - 如果 yyparse 失败,如何跳过部分野牛
- javascript - 如何为此类定义 Google Closure Compiler externs
- python - 如何使用按钮为 python 的单选按钮选择值?