Hi:
In my vb.net application i have a task to calculate number of pages printed .
can any one send me vb.net code to accomplish this task. its very urgent.
thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
vivek kulkarniPosted Apr 5, 2009, 5:49 AM
Hi,
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
Thank you