Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is there any function that helps me count number of pages i printed in a computer?
Posted

1 solution

You can use a pagenumber variable at module level and increment it in printpage event.
Printpage event of the printdocument control. here is a link on how to do it.

http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.printpage(VS.80).aspx[^]
 
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