How to know the total pages to print??

  • Thread starter Thread starter fbouabcha
  • Start date Start date
F

fbouabcha

Hi,
My pb is to know the total pages to print, because I want to print each
pages this format
"page n of M".

Thanks.

Nass
 
fbouabcha said:
My pb is to know the total pages to print, because I want to print each
pages this format
"page n of M".

Are you using 'PrintDocument'? If you are doing so, you'll have to simulate
the printing process prior to printing the final result, count the calls of
the 'PrintPage' event handler and adjust the print content accodingly by
inserting the total number of pages.
 
Back
Top