I've created a report that has a business object as its data source. For a number of tables I select lists within the object and use it to layout the report. What i noticed is that for each table the constructor of the business object is called each time.
What I would like to do is initialize the object outside the report and then use NeedDataSource to pass the appropriate data in (looking at the data member in sender object?) to pass in the appropriate data.
NeedDatasource is not firing and I read that it will not be if the report has a datasource. So now I am not passing in the data source but the report is still instantiating its own I suppose because when defining the data source in the designer enables the report to create its own. I theorize that if I create the report this way and then unhook the tables from data sources that needdatasource will be fired but this seems like an odd way to do things.
I am obviously missing something, any pointers would be greatly appreciated.
Thanks,
Don Rule
Translational Software
What I would like to do is initialize the object outside the report and then use NeedDataSource to pass the appropriate data in (looking at the data member in sender object?) to pass in the appropriate data.
NeedDatasource is not firing and I read that it will not be if the report has a datasource. So now I am not passing in the data source but the report is still instantiating its own I suppose because when defining the data source in the designer enables the report to create its own. I theorize that if I create the report this way and then unhook the tables from data sources that needdatasource will be fired but this seems like an odd way to do things.
I am obviously missing something, any pointers would be greatly appreciated.
Thanks,
Don Rule
Translational Software