如何使用C#获取要打印的份数? [英] How can I get number of copies to printed using C#?
本文介绍了如何使用C#获取要打印的份数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直致力于与印刷管理相关的项目。我可以获得totalPages,但它不显示包括副本在内的总页数,只是选择的页面
我尝试过的方法:
我暂停了打印假脱机程序然后我可以得到没有副本的总页数。
解决方案
如果你使用的是报表查看器那么你可以尝试这个..
ReportViewer rv_Report = new ReportViewer();
rv_Report.PrinterSettings.Copies = 2 ;
上面代码打印2份报告
I've been working on a project that is related to Printing Management. I could get totalPages but it doesn't show total pages including copies, just selected pages
What I have tried:
I've paused print spooler then I could get totalpages without copies.
解决方案
If you are using report viewer then you can try this..
ReportViewer rv_Report = new ReportViewer(); rv_Report.PrinterSettings.Copies = 2;
here above code print 2 copies of report
这篇关于如何使用C#获取要打印的份数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文