Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page Total Problem
Message
 
À
02/06/2008 11:09:54
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01320884
Message ID:
01321122
Vues:
31
>Hi,
>Thank for your reply, can you suggest any
>solution for this case ?
>
>Derek

You have to run the report twice .. the first time you output it to a file and track how many pages are in each data group. The second time you output it to the printer/preview and reference the data you built during the first pass.

There are several ways to go about it. You could create a cursor to hold the page counts .. or you could create an array or a collection. As far as updating the cursor/array/collection, you could call to a UDF or method in the OnExit Expression of the data group footer .. and within that UDF or method you can check the number of pages and store it in your cursor/array/collection.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform