Home All Groups Group Topic Archive Search About

How to know the total pages to print??

Author
18 May 2006 3:19 PM
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

Author
18 May 2006 10:16 PM
Herfried K. Wagner [MVP]
"fbouabcha" <fbouab***@hotmail.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>