hptj 发表于 2013-11-25 20:19:00

生成的PDF页眉出现很多方框

已经添加代码:            
textControl1.SelectAll();
textControl1.Selection.FontName = "宋体";

iceman 发表于 2013-11-26 09:54:00

回复 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);

hptj 发表于 2013-11-26 10:14:00

回复 2楼iceman的帖子

好的,谢谢。

iceman 发表于 2013-11-26 11:22:00

回复 3楼hptj的帖子

不客气,有问题欢迎开新帖提问。
页: [1]
查看完整版本: 生成的PDF页眉出现很多方框