Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative way to keep track of page numbers
Message
 
To
20/01/2008 01:04:07
Quinn Mayo
Quantified Pty Ltd
Melbourne, Australia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01283366
Message ID:
01283580
Views:
12
This message has been marked as the solution to the initial question of the thread.
That sounds odd to me that you can't use _PageNo in Frx2Any .. but in any event .. here's how to get around it.

- Create a report variable called rnPageNo. Set the Value to zero. Set the Calculation option to SUM.

- In the On Entry Expression of the Page Header band, enter this:
_VFP.SetVar('rnPageNo', rnPageNo+1)
The report variable will continue to SUM zero for each record processed, which obviously doesn't change the value. The On Entry expression is the one that actually increases the counter for you.



>Hi,
>
>I need an alternative method to keep track of the current page without using _PAGENO. The _PAGENO variable isnt reporting the current page when used in conjunction with FRX2ANY, which converts it to pdf for me.
>
>Is anyone aware of a nice easy way to increment a variable at the end of each page?
>
>Ta
>Quinn
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
Next
Reply
Map
View

Click here to load this message in the networking platform