Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you determine the last page of the report?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00396436
Message ID:
00396445
Vues:
29
Are you trying to determine if you're at the end of the report in the page footer, header, or somewhere else?

If you're in the footer, you can just check EOF().

If you're somewhere else, you have to run the report twice to determine how many pages there are:
   PRIVATE nLastPage    && Must not be local or the report won't see it

   nLastPage = 0
   REPORT FORM whatever TO FILE NOCONSOLE
   nLastPage = _PAGENO
   * At this point, nLastPage has the last page number
   * In the report, you can check if _PAGENO = nLastPage
   REPORT FORM whatever TO PRINT   && or preview
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform