回复 1楼昨夜人的帖子
你好,
关于打印页码问题,请尝试一下代码,看是否能够打印成功。
- private void Form2_Load(object sender, EventArgs e)
- {
- string filename = System.IO.Path.Combine(Application.StartupPath, "测试文档.doc");
- this.tx.Load(filename, TXTextControl.StreamType.WordprocessingML);
- this.tx.HeadersAndFooters.Add(TXTextControl.HeaderFooterType.All);
- TXTextControl.HeaderFooter footer = this.tx.HeadersAndFooters.GetItem(TXTextControl.HeaderFooterType.Footer);
- TXTextControl.PageNumberField pageNumField = new TXTextControl.PageNumberField(3, TXTextControl.NumberFormat.ArabicNumbers);
- footer.PageNumberFields.Add(pageNumField);
- this.tx.Print("");
- }
复制代码 |