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

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

Hello,

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?

Thanks,
Derek B

1 Reply

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

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. 
 
Regards, 
Mahendran S. 


Loader.
Live Chat Icon For mobile
Up arrow icon