Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pages in a vfp6 rept: Page allt(str(_pageno)) of ???
Message
From
03/06/2002 15:32:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/06/2002 11:20:10
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00652896
Message ID:
00664237
Views:
28
>Hilmar
>Thanks for the input. Sorry it took so long to get back, but that solution did work. Fortunately, it is only packing slips and Bill of Ladings I am dealing with (1 to 3 pages). If the report had several hundred pages, that could cause processing delays users may not be willing to contend with.
>vince bologna

The only safe solution seems to be to process the report twice. However, in some cases, you can calculate the number of pages just by counting the records - if you know for sure that you have exactly "x" records per page.

Packing slips might satisfy this requirement.

The calculation would be something like this:
RecordsPerPage = 10
NumberOfPages = ceiling(recno() / RecordsPerPage)
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
Reply
Map
View

Click here to load this message in the networking platform