General information
Category:
Reports & Report designer
Thanks, the FAQ mentioned that.
>>Is there any way to get the total # of pages for a report (to print a Page 1 of 10 at the bottom) in VFP 5.0a?
>>
>>I read the FAQ for printing and saw the code fragment:
>>
>>Report form MyReport to prompt NoConsole
>>gnTotalPages = _pepage
>>
>>But _pepage seems to always be 32767. Any ideas?
>>
>>Chris Vesper
>
>Chris, you have to run your report twice. First time REPORT FORM TO FILE ... NOCONSOLE
>then you get _pageno and run report the second time using it for the total number of pages.
>You need to use TO FILE NOCONSOLE because there are situations when _pageno may be wrong if you output it to SCREEN NOCONSOLE
>
>Nick
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