>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>
>How do I get the number of pages on the first page of report?
>>>>>>>>>>
>
>LOCAL lcfile
>lcfile = SYS(3)+" .Tmp"
>REPORT FORM &cRepName TO FILE (m.lcfile) NOCONSOLE
>ERASE (m.lcfile)
>pnpages = _PAGENO
>
>You print your report to a temporary file (and do a page count) and reprint your report to printer.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>I've been called many things but never Mark.
Sorry, Mike. I wrote this in a harry, so I misspelled your first name. BTW, my son's name is Mark, may be this is the source of confusion :)
And, BTW, you don't need to use macro in the above example. It should be:
REPORT FORM (m.cRepName) TO FILE (m.lcFile) NOCONSOLE
If it's not broken, fix it until it is.
My Blog