Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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.
Posted
Updated 3-Jun-16 2:38am
Comments
Sergey Alexandrovich Kryukov 1-Jun-16 2:37am    
Why? The copies are done transparently to your application, as soon as it shows the print dialog. The answer may depend one what you are using for printing. It's different for System.Windows.Forms, WPF, and probably anything else you use for UI.
—SA

1 solution

If you are using report viewer then you can try this..
C#
ReportViewer rv_Report = new ReportViewer();
rv_Report.PrinterSettings.Copies = 2;

here above code print 2 copies of report
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900