ReportDataSourceCollection dataSources = new ReportDataSourceCollection();
dataSources.Add(new ReportDataSource { Name = "ProductCatalog", Value = ProductCatalogSource.GetData() });
when my report is displayed and i get a message like this
Hi Karmen,
Thanks for the update,
Please find the details from the below table,
Query |
Response |
I am using a RDL template and I would like to programmatically add my data source specifying SQL CE database file location (pathToApplication\database.sdf).
|
You can generate the RDL and RDLC reports programmatically in the report viewer. Please refer to the below documentation
Please refer to the below documentation to change the data source dynamically
https://help.boldreports.com/embedded-reporting/how-to/change-the-report-datasource-dynamically/
|
I have seen these two lines in the documentation under Generating RDLC Reports:
ReportDataSourceCollection dataSources = new ReportDataSourceCollection(); dataSources.Add(new ReportDataSource { Name = "ProductCatalog", Value = ProductCatalogSource.GetData() }); Copy but it does not do what I want since the collection or ReportDataSource itself does not contain the setPath() method or something similarly.
|
For rendering the RDLC report, Please refer to the below documentation https://help.boldreports.com/embedded-reporting/wpf-reporting/report-viewer/rdlc-report/
If you are still facing any issue, could you please share the additional details of this issue with issue snap with us? It will be helpful for us to validate and provide the solution at the earliest.
|
Regards,
Arumugasami M.
Hi Karmen,
Please ignore the last update,
Could you please share the additional details of this issue with us? And also, is it possible to share your reproducible simple sample with us? It will be helpful for us to validate and provide the solution at the earliest.
Regards,
Arumugasami M.