Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Termination in the Data Environment.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00115078
Message ID:
00115124
Vues:
11
>i was wondering if there is an easy way i can terminate a report in the Data Environment Init method. i know i can open a table with no records and that will terminate the report.

I don't think so. What I do is create a dummy form class that sets up the report in a private DS. This form has a property, lValid, that I set to .T. or .F.
set classlib to myclasslib
oReport = createobject("ReportForm")
oReport.do_some_stuff()     && this stuff will set the lValid property
if oReport.lValid           && to .T. if all goes well
   oReport.RunReport()
endif
oReport.Release()
Since the report generator is not really OOP, this is about the only way I can figure out how to really control the report environment.

P.S. the form never gets shown to the user,it is just a convenient way of controlling everything. You could use just about any object to do this with. It does not have to be a form. I just use a form in case I ever want to show the form with some user-configurable reporting options on it.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform