Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print 'Page 1 of X' on a report
Message
 
 
To
21/03/2002 10:44:39
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00635516
Message ID:
00635640
Views:
9
>Hi, My name is Herman.
>
>I have been writing some reports with VFP6.
>I can't seen to find how to get the total number of pages
>the report will print so that I can show 'Page 1 of X' on each
>page printed. How can I do this.
>
>Thanks

Hi Herman,

Wellcome to UT! I guess, everyone of us started using UT with the same question :) At least, I had...

There are two approaches here:
1) Print report to temp file before producing the actual file and save _pageno in some variable
2) If your report is simple and doesn't use stratch with overflow option, you may want to calculate this number knowing how many records per page is usually printed... This approach is tricky and it's not recommended.
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