Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total # of pages on report?
Message
From
02/05/2000 11:28:57
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00364919
Message ID:
00365113
Views:
22
Thanks, the FAQ mentioned that.

>>Is there any way to get the total # of pages for a report (to print a Page 1 of 10 at the bottom) in VFP 5.0a?
>>
>>I read the FAQ for printing and saw the code fragment:
>>
>>Report form MyReport to prompt NoConsole
>>gnTotalPages = _pepage
>>
>>But _pepage seems to always be 32767. Any ideas?
>>
>>Chris Vesper
>
>Chris, you have to run your report twice. First time REPORT FORM TO FILE ... NOCONSOLE
>then you get _pageno and run report the second time using it for the total number of pages.
>You need to use TO FILE NOCONSOLE because there are situations when _pageno may be wrong if you output it to SCREEN NOCONSOLE
>
>Nick
Previous
Reply
Map
View

Click here to load this message in the networking platform