Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numbering the pages
Message
From
29/09/1998 12:21:40
 
 
To
29/09/1998 12:11:41
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00141978
Message ID:
00141987
Views:
23
>My report numbers the pages as follow : Page : 1, Page : 2 .....
>
>I would like to number the pages with the total of pages that I am printing as follow :
>
> Page : 1 of 25, Page : 2 of 25, ....
>
>Does anybody knows how to do this?
>
>Thanks,
>Sergio

You have to run the report first to find out how many pages it contains.
Check the value of _PAGENO when it is finished and this is your total number of pages.
REPORT FORM myreport to tmpfile.txt
PRIVATE nTotPages
nTotPages = _PAGENO

Then in your report, refer to the nTotPages variable.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform