>All,
>
>I have several reports that have Summary and Detail versions. I would like to select the report version from the parameter form and have the appropriate report run. I am trying to create a blank report, with no dataenvironment, to call the correct report form based on my input, but am running into problems.
>
>Has anyone tried this?
>Have you been successful?
>How do you do it?
>Is there a better way?
>
>TIA
>
>Rex
I normally create a report-specific bizobj that gets called from the report form instead (which is very similar to the event object). The bizobj is then responsible for creating an running the report.
I've been thinking about redoing the whole report thing so that you select the report from a list which then asks the report object for a name of a form it should instanciate so you can select the parameters.
For example, you would have a pageframe. On the first page you've got the list of reports in something like a treeview. When you select a report (double click, click on the second page, etc) it will instanciate the appropriate report object and query it for the name of the report parameters class (which would be a container w/controls). Then it would add this container to the second page on the fly. Once they fill this in this info would be passed back to the report object via XML, or you could bind the controls directly to properties on the report object. The report object also knows how to preview or print the report.
Just some ideas...