回复 1楼huyu1681的帖子
请通过以下代码测试:
- PrintDocument myPrintDoc = new PrintDocument();
- myPrintDoc.PrinterSettings.PrintRange = PrintRange.SomePages;
- myPrintDoc.PrinterSettings.FromPage = 1;
- myPrintDoc.PrinterSettings.ToPage = 1;
- myPrintDoc.DefaultPageSettings.Color = false;
- textControl1.Print(myPrintDoc);
复制代码 |