Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change CAPTION on Preview Window
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00735552
Message ID:
00735810
Views:
6
>Thanks for your help. But when I move between report's pages, how can I display report's page number on print preview caption windows.


Create a UDF that has the following code:

MODIFY WINDOW MyRep TITLE "My Report - Page " + TRANSFORM(_PAGENO)


In the OnEntry Expression of the Page Header, place the following expression:

MyUDF()


This will force the report writer to call your UDF at the beginning of each page and the UDF will change the title of the preview window.

Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Reply
Map
View

Click here to load this message in the networking platform