Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I create a control to print specific report pages
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01082398
Message ID:
01082919
Vues:
7
It gets much more complicated to attempt this from within the preview. I can't post all my code here on the UT .. it involves more than one class and an Extention Handler that all works together. The native behavior of hitting the print button is to close the preview and print the report. I had to wrap the entire process in code that calls the preview .. lets them prompt for pages .. sets some properties .. exits the preview which in turn prints the report using my properties. Then I restarted the preview where it left off.

I'm guessing what you need to do is put code in the IncludePageInOutput method. When you are previewing, the array or property you use should be blank and you should just DODEFAULT(). When the array or property is filled in, check to see if the page matches. In your code that gets the pages from the user .. all you should have to do is set the property or array .. then close down the preview container. There is a property, but I can't remember what it's called, that indicates whether it should print when it closes down. Use intellisense to find it and make sure it's set to .t. The printing should happen automatically at that point as the preview container is closed.
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