General information
Category:
Reports & Report designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only