Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Counting pages...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00228852
Message ID:
00228854
Vues:
11
>Hello once again...
>I'm using a class to generate reports and am trying to count the total number of pages. This is my current code:
>
>REPORT FORM ReportName NOCONSOLE TO FILE ReportFile ASCII
>nPages = _PAGENO
>
>I think that _PAGENO is always returning 1 (cause it's on the first page?).

_PAGENO is meant to be used within the report designer. Put a field on your report that is linked to this variable. A guess is that in the destroy method of the report you could then do

nPages = _PAGENO

But you will want to test this out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform