Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
System Variable for Total No. of Pages?
Message
De
16/05/2001 12:59:00
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00507933
Message ID:
00507946
Vues:
18
>Is there a system variable for the total number of pages in a report?
>
>Such that you could have an expression something like:
>
>
>
>"Page " + ALLTRIM(STR(_pageno)) + " of " + ALLTRIM(STR(_<totalpages>)
>
>
>
>TIA, Chuck

Chuck,

The accepted way is to print the report first to a file, get the total pages, then print to paper. So if you use a variable TotalPages it your report it would look like this:
REPORT FORM MyReport to FILE TempRept.prn NOCONSOLE
TotalPages = _PageNo
DELETE FILE TempRept.prn 
REPORT FORM MyReport TO PRINT NOCONSOLE
It doesn't take long to print to the file and it gets you the right number of pages.
David.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform