Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to put the code
Message
De
18/12/1998 14:51:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00168974
Message ID:
00168986
Vues:
24
>Ok, that's the how. What about the "should I?" It seems good in that the report is encapsulated, but loading a whole problem in one of the DE methods (probably AfterOpenTables?) seems wrong somehow. I know there's really not a "wrong" way to do things, but there are better and worse ways. I don't want to start a habit that will be frowned upon buy future bosses.
>
>Thanks,
>
>-Michelle

What we have done, and I have seen it other times is to create a report catalouge. This would list all the reports in the system... It would also be a place where the user can print reports from, but it doesn't need to have an interface.

Basically, you would create a class which you could call to print your reports. The class would find the record for the report. You could have fields such as...

PreReportProcedure()
PostReportProcedure()

Your report class would call the procedure prior to doint the form. This would also allow you to encalpsulste stuff like

Where to output to
A selection criteria
etc... other stuff...

The report class would handle running the pre procedures, putting up the report dialog, runing the form, etc.

Where would you actually put the procedures? I don't know... I would recomend either set up a class to hold them, or put them as procedures in the database.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform