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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top