回复 29# jxf16888 的帖子
如果你只是想打印指定的页,调用Print()的第二个重载方法会更方便一些:
- PrintDocument printDoc = new PrintDocument();
- printDoc.PrinterSettings.PrintRange = PrintRange.SomePages;
- printDoc.PrinterSettings.FromPage = 2;
- printDoc.PrinterSettings.ToPage = 2;
-
- textControl1.Print(printDoc);
复制代码 |
|