Printing: how to draw ALL pages count on each page?
When I print or printview the document, I want to draw the current page count and the count of ALL pages on each page. In order that I override OnPrintPage of PrintDocument, and use a counter data member to caculate the current page count. but before all pages printed, I cann't get the all pages count information, how can I do?