Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I know how many pages there are in a report?
Message
From
15/08/2000 15:23:15
 
 
To
15/08/2000 15:12:42
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00405147
Message ID:
00405159
Views:
22
>I'm going to put a "page 1 of n" message for a report.
>
>How do I know what "n" is.
>
>I tried using the '_pepage' system variable, but it give me a larger number than it should.
>
>
>
>Thanks.
>
>Sergio
You havr to run report rwice.
*!* set total pages to 0 for first run
*!* lnTotPages is used in report layout: 'of ' + lnTotPages
lnTotPages = 0
*!* run report
REPORT FORM ... TO FILE
*!* set total pages to real number of pages
lnTotPages = _pageno
*!* run report
REPORT FORM ...
Mark
Previous
Reply
Map
View

Click here to load this message in the networking platform