>Is there a way using VFP 5 reports to print Page n of m ? For example Page 1 of 5. I also have a need to print some text in a page footer but only if its the last page.
>
>Thanks to anyone who can help.
Yes. Run the report to a file before printing. This will give you the total number of pages.
lnTotalPages = 0
REPORT FORM MyReport TO FILE Dummy.TXT NOCONSOLE
lnTotalPages = _PAGENO
ERASE Dummy.txt
REPORT FORM MyReport TO PRINTER
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer