>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()
if oReport.lValid
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