Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grouping problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01338206
Message ID:
01339603
Vues:
18
>Well, in that case, what I need is a way to calculate a page total for the data grouping. It's irrelevant to tell someone their 2-page report is "Page 1 of 2317" and "Page 2 of 2317". When distributing the printed output, we need a way to know we've reached the end of a data grouping.


Sergey and I were both wrong (I'm blaming mine on a blonde moment!). There's no bug .. it's behaving as expected. _PageTotal represents the total number of pages of the report .. however .. if you have told it to reset the page number for each data group, it also resets _PageTotal each time it resets _PageNo. When the report processes the second pass to create the output .. the value of _PageTotal is just left at whatever the last _PageNo was .. which means it ends up being the total number of pages of the LAST data group processed on the report.

If you are using VFP 9 SP2, there is a way to get the totals you want. I described it a while back on message #1321284.
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform