这段代码在我Win7的系统没有问题,但在同事的几台机器都不行。
For Each f As TXTextControl.Table In Me.TextControl2.Sections.GetItem.HeadersAndFooters.GetItem(TXTextControl.HeaderFooterType.Header).Tables
f.Select()
Me.TextControl2.Sections.GetItem.HeadersAndFooters.GetItem(TXTextControl.HeaderFooterType.Header).Selection.ForeColor = Color.White
For Each t As TXTextControl.TableCell In f.Cells
't.Text = ""
't.Select()
t.CellFormat.BottomBorderColor = Color.White
Next
Next
表头的内容没有变色,仍然被打印出来了。
|
|