Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page numbers in reports
Message
From
17/03/2000 18:08:04
 
 
To
17/03/2000 17:22:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00347328
Message ID:
00347338
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform