首页 > 解决方案 > 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;

这是我在这里的第一篇文章,希望我做得很好。对不起英语不好。

标签: c#

解决方案


推荐阅读