PrintDocument N of N pages

I manually print and draw a document using this class, but am not sure how to write on a document Page 1 of 10, Page 2 of 10, etc.

Any ideas?

+3
source share
2 answers

You have to count. use the class attribute to count. In addition, you must calculate the total score.

Remember that the printPage event is a call for every page!

http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.printpage.aspx

+1
source

, . , . .

0

Source: https://habr.com/ru/post/1773049/


All Articles