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.