>
>REPORT FORM xxx TO FILE < filenamehere > NOCONSOLE
>
>for retrieving total count of pages. You can delete the file after this command
One additional warning: if you print to PDF, you have to produce temp pdf as well to receive proper number of pages...
Also print to file prints to default printer. If you select another printer, then the number may be off again...
If it's not broken, fix it until it is.
My Blog