Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReportListener.PageNo not accurate?
Message
 
 
To
18/10/2006 16:54:36
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01163117
Message ID:
01164523
Views:
12
.PAGENO should be *more* accurate than _PAGENO, in the sense that it covers a whole print run and is not changeable by users, it represents what the base reportlistener thinks is going on in terms of how many pages it has created, or is creating.

You may have found a bug. Do you think you can submit this as a simple repro (through the official connect site, please, but I'd like to see it also)?

You may also have found something that is not a bug but is related to the exact point at which you are checking the value, which may be sooner than the reportlistener actually starts preparing the next page.

Don't forget that Render may be called multiple times for the same instance of the same control. (Have you checked the continuation argument?)

You might want to use the DebugListener (you'll find it in _reportlistener.vcx, it's slightly improved in the CTP but substantially the same) to take a closer look at what's going on in this report. If you are using AdjustObjectSize (for MaxHeightAvailable) you will probably want to turn on the .Verbose switch.

>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform