如何在C#中打印多页 [英] How to print multiple pages in C#
本文介绍了如何在C#中打印多页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用printDocument和e.Drawimage()方法打印多个页面.
我正在打印Windows窗体控件,并且想在两个不同的页面上打印两个面板,但是我想知道如何?
如果有人知道出路,请回复.
谢谢..
I am trying to print more than one page using printDocument and using e.Drawimage() method.
I am printing the Windows Form controls and I want to print two panels on two diffent pages but I am wondering how ?
if any body knows the way out plz reply.
Thanks..
推荐答案
在您的PrintDocument.PrintPage
处理程序中,您需要设置PrintPageEventArgs.HasMorePages
.
这里有一个示例: http://msdn.microsoft.com/zh-我们/library/system.drawing.printing.printdocument.aspx [ ^ ]
尼克
In your handler forPrintDocument.PrintPage
you need to setPrintPageEventArgs.HasMorePages
.
There is an example here: http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^]
Nick
这篇关于如何在C#中打印多页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文