Diego Ledesma
Diego Ledesma

Reputation: 1372

Crystal Reports for Visual Studio 2008: Mix of data sources in Report and subreport?

I have a winforms applications that does some reporting using Crystal Reports for Visual Studio 2008. I'm facing the situation where I have to add new data to one of those reports, that uses odbc as its data source. Since the new data I have to add is quite complex to process with CR Table Designer (odbc) I'm thinking on doing all the processing by code and pass the output using a DataSet. Also, I don't want to migrate the whole report to DataSets as data source. I know I can't use Odbc and DataSet on the same report but can I do this on a subreport?. I mean, keep the main report as odbc and add a subreport with DataSets as its source?

Thanks.

Upvotes: 0

Views: 755

Answers (1)

competent_tech
competent_tech

Reputation: 44921

I believe the answer is that yes, you can. We provide independent datasets to subreports all of the time using the report's Database.Tables([SubReportTableName]).SetDataSource() method.

Upvotes: 1

Related Questions