简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM