Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page total in footer
Message
 
To
20/11/1998 10:28:58
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00159713
Message ID:
00159723
Views:
34
>I am having a hard time displaying the page total in the footer along with the page number. I can show the current page but not the total number of pages. In the following example how would I display the 15? Any help would be appreciated.
>
>Example:
>
> rpt hdr
>rptbody
>rptbody
>rptbody
>
>rpt footer Page 1 of 15

Michael, you need to run your report twice:
First time you just get the total pages number from the _pageno and the second time you will run it to printer using obtained value.
You can run the report first time TO SCREEN NOCONSOLE, but people say that sometimes it may give you incorrect number, so better to send it to file (and delete in then) or to NUL.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform