Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page Numbering
Message
From
30/06/2003 10:00:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/06/2003 09:53:48
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00805287
Message ID:
00805292
Views:
22
>In vfp6 I have designed a number of reports showing the Page Number with the 'pageno' variable in the report designer field expression builder.
>
>However I want to be able to show "Page x of y" where x = current page and y = total number of pages on the report. I cannot find any such variable?
>
>Any ideas will be gratefully received
>
>Peter

That variable was introduced in VFP8, IIRC. This requires a two-pass process, to count the total number of pages. In previous versions, the workaround is to do the two-pass process yourself. In the first pass, you output the report to a file, and store the number of pages - _pageno, I believe - to a variable. In the second pass, you print the report proper, with this variable.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform