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.

ReportViewer gives the following error message: "Provide Dataset inputs for Report"

I have an MVC 5 application and I am attempting to view an .rdlc using the Syncfusion ReportViewer. The reportviewer loads with no data, only the columns defined in the .rdlc file, with the error "Provide Dataset inputs for Report".
This is the line I use to local the reportviewer: 
@Html.EJ().ReportViewer("reportviewer").ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local).ReportPath("~/Views/Reports/BatchReport.rdlc").ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportsApi")).ReportLoaded("onReportLoaded").DataSources(ds => { ds.Name("DataSet1").Value(ViewData["ReportData"]).Add(); })

As you can see I am attempting to pass the data in ViewData from my Controller (as per one of the samples I saw). I've left the ReportsApi as the default. 

Any guidance as to where I might be going wrong is appreciated.

5 Replies

SR Soundara Rajan S Syncfusion Team September 10, 2015 04:45 AM UTC

Hi Hemraj,

Thanks for contacting Syncfusion support.

The issue might have occurred due to the mismatch of given dataset name with your report dataset. So please ensure the given dataset name in your report. We have prepared a RDLC sample based on your requirement and it can be downloaded from the below location,
http://www.syncfusion.com/downloads/support/forum/120189/ReportViewerDemo-568721476.zip

Please refer to the below UG documentation link for more details,
http://help.syncfusion.com/aspnetmvc/reportviewer/report-datasources

Regards,
Soundara Rajan S.




VS Vance Sankar September 10, 2015 07:29 PM UTC

Hey Soundara,
Yes ... the mismatch in the dataset names was the issue. I'm able to see my report with data now.

Thanks.


SR Soundara Rajan S Syncfusion Team September 11, 2015 03:59 AM UTC

Hi Hemraj,

Thanks for the update. Please let us know, if you need any further assistance.

Regards,
Soundara Rajan S.


VS Vance Sankar September 13, 2015 09:35 PM UTC

I do have an additional question. I have parameters defined in my RDLC file and they display fine in the reportviewer. However, given I have the data for the report being loaded in my Controller Action I am not sure how to tie the report data and parameters together. Any thoughts?


SR Soundara Rajan S Syncfusion Team September 14, 2015 06:08 AM UTC

Hi Hemraj,


We have option to filter the data for Dataset/ReportItem regions based on report parameter. So use the filter for DataSet/ReportItems regions based on your parameter. Please refer to the below MSDN article for more details,
https://msdn.microsoft.com/en-in/library/ms252125(v=vs.100).aspx

Regards,
Soundara Rajan S.

Loader.
Live Chat Icon For mobile
Up arrow icon