Hi Anil,
Thanks for contacting Syncfusion Support.
In ASP.Net MVC ReportViewer, if we specify the datasource connection string detail in RDL report under datasource property as shown in shared screenshot then the report data is rendered from datasource service without passing the dataset value in code behind. We suspect the mentioned issue might have occurred when you have specified the processing mode as local to load the RDL file in your application. So please specify the processing mode as “Remote” to load the RDL report in your application to avoid the mentioned problem as shown in below code example,
<body style="overflow: hidden; position: static; margin: 0px; padding: 0px; width: 100%; height: 100%">
<div style="width:100%; height:100%; position:absolute;">
@(Html.EJ().ReportViewer("reportsample")
.ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote)
.ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportApi"))
.ReportPath("~/App_Data/GroupingAgg.rdl")
)
</div>
</body> |
DataSource connection property,
For your reference, we have prepared a sample and it can be downloaded from below location,
Please refer the below UG documentation to create ReportViewer sample in ASP.NET MVC platform,
You can obtain the complete ASP.NET MVC ReportViewer sample in below build installed location,
%userprofile%\AppData\Local\Syncfusion\EssentialStudio\version\ MVC\Samples\web
If the issue persists, then share the RDL file and view page to validate the mentioned issue at our end.
Regards,
Yuvaraj D.