Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting pages...
Message
 
 
To
11/06/1999 12:39:25
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00228852
Message ID:
00228854
Views:
10
>Hello once again...
>I'm using a class to generate reports and am trying to count the total number of pages. This is my current code:
>
>REPORT FORM ReportName NOCONSOLE TO FILE ReportFile ASCII
>nPages = _PAGENO
>
>I think that _PAGENO is always returning 1 (cause it's on the first page?).

_PAGENO is meant to be used within the report designer. Put a field on your report that is linked to this variable. A guess is that in the destroy method of the report you could then do

nPages = _PAGENO

But you will want to test this out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform