>Is there a system variable for the total number of pages in a report?
>
>Such that you could have an expression something like:
>
>
>
>"Page " + ALLTRIM(STR(_pageno)) + " of " + ALLTRIM(STR(_<totalpages>)
>
>
>
>TIA, Chuck
Chuck,
The accepted way is to print the report first to a file, get the total pages, then print to paper. So if you use a variable TotalPages it your report it would look like this:
REPORT FORM MyReport to FILE TempRept.prn NOCONSOLE
TotalPages = _PageNo
DELETE FILE TempRept.prn
REPORT FORM MyReport TO PRINT NOCONSOLE
It doesn't take long to print to the file and it gets you the right number of pages.
David.