回复 27楼450289068的帖子
保存为方块问题我重现了,并且通过以下方法可以解决:
- private void MenuItemPrint_Click(object sender, RoutedEventArgs e)
- {
- MyValue = "1";
- this.textControl1.SelectAll();
- this.textControl1.Selection.Bold = false;
- this.textControl1.Selection.FontName = "Arial Unicode";
- this.textControl1.Save("111.pdf", TXTextControl.StreamType.AdobePDF);
- //虚拟打印
- PrintDocument myPrintDocument = new PrintDocument();
- myPrintDocument.PrinterSettings.FromPage = 1;
- myPrintDocument.PrinterSettings.ToPage = 1;
- this.textControl1.Print("111.pdf", new PageRange(1, textControl1.Pages), 1, System.Printing.Collation.Uncollated);
- this.Close();
- }
复制代码 |