Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page X of Y in Reports
Message
From
13/07/2005 06:00:50
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
 
 
To
28/06/2005 14:38:55
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027163
Message ID:
01032099
Views:
15
> A manager requested that the footer for the document be
> changed from “Page x” to “Page x of y” where y is the
> total number of pages and x is the current page number.
> I know this was not possible with previous versions of VFP
> but can it be done somehow?

Create a global variable total_pages. set it to 0.
Add a field in the report to print variable total_pages.
Run "report form ... noconsole". Set total_pages to _pageno.
Run "report form ... to printer" to get your page _pageno of total_pages.
Regards,
Mr. Man-wai Chang
Previous
Reply
Map
View

Click here to load this message in the networking platform