Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print last page number on first page using VFP7?
Message
 
To
18/05/2006 12:40:09
Mark Phillips
Erw Custom Programming Inc.
Waterford, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01123273
Message ID:
01123278
Views:
21
>Hello
>
>Need to know if its possible to print the last page number on the first page in vfp7?
>
>Not sure if you can get the last page number when printing the first page?
>
>Thanks
>Mark

Yes you could, but you must run the report twice to do that:
lnTotalPages = 0
REPORT FORM ... TO MyFile.TXT NOCONSOLE NODIALOG
lnTotalPages = _pageno
REPORT FORM ... TO PRINTER PROMPT PREVIEW
And use
lnTotalPages to show total number of pages in that report.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform