General information
Category:
Reports & Report designer
>I'm going to put a "page 1 of n" message for a report.
>
>How do I know what "n" is.
>
>I tried using the '_pepage' system variable, but it give me a larger number than it should.
>
>
>
>Thanks.
>
>Sergio
You havr to run report rwice.
*!* set total pages to 0 for first run
*!* lnTotPages is used in report layout: 'of ' + lnTotPages
lnTotPages = 0
*!* run report
REPORT FORM ... TO FILE
*!* set total pages to real number of pages
lnTotPages = _pageno
*!* run report
REPORT FORM ...
Mark
Previous
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