Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page X of Y?
Message
From
31/10/2001 07:29:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
31/10/2001 07:22:07
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00575536
Message ID:
00575539
Views:
26
This message has been marked as the solution to the initial question of the thread.
>Hi Again Guys,
> I have a report and I want it to display the curent page together with the last page of the report as a footnote. Something like:
>
>Page X of Y
>
>where X is the current page and Y is the last page. Any ideas on how I should go about doing this? Thanks in advance for all your help.
>
>Regards, Richard.

VFP has no built-in method for determining the total number of pages on a report.

One workaround is to count the record numbers. Suppose you have 40 lines on each page:
select ... into TmpReportCursor
LinesPerPage = 40
NumberOfPages = ceiling(reccount() / LinesPerPage)
report form MyReport ...
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