Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page X of Y
Message
 
 
To
22/01/2003 12:13:42
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00744329
Message ID:
00744331
Views:
10
Hi Sapna,

There is a FAQ here on this topic.

Anyway, the general approach requires two passes. First pass would be to dummy file, then the real pass, e.g.
private pnNumPages
pnNumPages = 0
report form myReport to file dummy.txt
delete file dummy.txt
pnNumPages = _pageno 
report form myReport to ... && Real pass
Use pnNumPages variable in your report.

VFP8 has this as native property...


>Hi,
>I have a report and in the header of the report, I want each page to show the current page number and the total pages in the report. Something like:
>
>Page X of Y
>
>where X is the current page and Y is the last page. Any ideas on how I should go about doing this? Thanks in advance for all your help.
>
>-Sapna Bhargava
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform