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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

144381 May 2,2019 09:21 PM UTC May 3,2019 07:07 AM UTC ASP.NET Core 1
loading
Tags: ReportViewer
derekb
Asked On May 2, 2019 09:21 PM UTC

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

Mahendran Shanmugam [Syncfusion]
Replied On 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. 
 
Regards, 
Mahendran S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon