生成的PDF页眉出现很多方框
已经添加代码:textControl1.SelectAll();
textControl1.Selection.FontName = "宋体"; 回复 1楼hptj的帖子
页眉设置需要单独设置:
TXTextControl.Section currentSection = textControl1.Sections.GetItem();
HeaderFooter hd = currentSection.HeadersAndFooters.GetItem(TXTextControl.HeaderFooterType.Header);
hd.Activate();
hd.Selection = new Selection(0, -1);
hd.Selection.FontName = "宋体";
this.textControl1.Save("demo.pdf", TXTextControl.StreamType.AdobePDF);
回复 2楼iceman的帖子
好的,谢谢。 回复 3楼hptj的帖子
不客气,有问题欢迎开新帖提问。
页:
[1]