Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper report design
Message
De
02/01/2000 21:00:40
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00310703
Message ID:
00311486
Vues:
16
I'm referring to Version 6.0b of the Framework here, This may apply to earlier versions as well

Are you talking about the results being used in a Report Preview? If you are then you should be able to select the Print pushbutton from the preview toolbar that appears. This is fine if one always wants to preview the report prior to printing.

If you want more flexibility (choosing multiple reports from one result set, preview some, etc...) you'll have to be a bit more creative. This is something that I am attempting to do right now. Here's my plan:
1. The frame work calls for adding, if you want, a modal form, called from the report's data environment's BeforeOpenTables event and passing back a True or False depending on whether you select Run or Cancel from the modal form.
2. I plan on having the necessary date range selection, item type(s) selection for the report cursor criteia as well as the appropriate check boxes for which reports and whether to preview any/all of them (Using that cute double checkbox in version 6.0b, of course...)
3. The modal form will return a unique numeric value or string that the calling method will run thru some interpreter (a case statement of string parser) and call the appropriate report form (with 'PREVIEW' for those I want to preview) and then pass false the the init method.

This report form with the code in the data environment will also be one of the reports - the last one, if selected.
Gil Munk


"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform