Information générale
Catégorie:
Gestionnaire de rapports & Rapports
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement