We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Starting in 2019, the Reporting control is no longer included in Essential Studio. If you're experiencing issues with the Syncfusion Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion and appreciate your understanding.

How to use datasource in EJ1 ASP.NET Core ReportViewer control?


Note: there was no ReportViewer control in the dropdown for ASP.NET Core, so I randomly selected DataGrid.

It's unclear from the documentation https://help.syncfusion.com/aspnet-core/reportviewer/getting-started how to actually use a datasource. I have an RDL file that is being displayed in the control, but it's loading from the datasource embedded in the report itself, even after manually setting the datasource in the controller's OnReportLoaded(ReportViewerOptions) method.

How can I make an RDL report use a datasource that I set from code?

Derek B

1 Reply

MS Mahendran Shanmugam Syncfusion Team May 3, 2019 07:07 AM UTC

Hi Derek, 
We can able to pass the datasource values from code behind for RDL report when setting the processing mode as local. We have prepared the simple ASP.NET Core Report Viewer sample to load the report from passing the datasource in code behind and it can be downloaded from below location. 
Please find the below help documentation for passing the datasource value from code behind. 
Mahendran S. 

Live Chat Icon For mobile
Up arrow icon