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