Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I would like to know the total numer of pages in a repor
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00123029
Message ID:
00123262
Views:
20
>>Good morning everybody !
>>
>>In my report, I can know the current page number with _pageno but I don't find the system variable to know the total number of pages so I could write : page 1 of 5 !!
>>
>>Thanks for your help !
>>
>Benoit,
>
>VFP has a single pass report writer, which means it has no idea what the total pages are until it finishes the report. To get what you want you need to run the report twice, at the end of the first run save _pageno to a variable and then run the report agian. IN the report use your variable for the of pages number.
>
>Be sure the variable exists the first time you run the report so you don't get errors, at the end you simply;
>
>variable = _pageno
>
>Then run the report a second time to print Page ## of ##

I have 2 questions:
1. Where do you run the firs reprt to? ( screen view, memvar, ,cursor, ??)
2. How will running the report the second time affect other variables ( like sums, etc) the second time around? would you have to have a different format report?

TIA,
Dan
Dan Gilliland
ICQ# 15695715


"Man is still the most extraordinary computer of all."
John F. Kennedy (1917-1963)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform