Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I know how many pages there are in a report?
Message
De
15/08/2000 15:23:15
 
 
À
15/08/2000 15:12:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00405147
Message ID:
00405159
Vues:
24
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform