I am trying to use the report viewer widget in my Existing MVC 4 project. I followed the steps found on this tutorial:
. http://www.telerik.com/help/reporting/mvc-report-viewer-extension-embedding.html
The difference I change from the guide posted to my own project was to put the styleing in my MVC project css and add the the javascript files with the MVC bundles.
I am trying to view the reports from the reportviewer widget and am trying to use the follwing view to instantiate the widget
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl("/api/reports/")
.TemplateUrl("/ReportViewer/templates/telerikReportViewerTemplate.html")
.ReportSource(report)
.ViewMode(ViewModes.INTERACTIVE)
.ScaleMode(ScaleModes.SPECIFIC)
.Scale(1.0)
.PersistSession(false) )
but I am getting an error in the ReportViewer-8.0.14 file in the throwIfNoReportInstance() function saying the report instance Id is undefined. I know this is because the report instance is not created, but I am wondering where the report is instantiated at. Thanks
. http://www.telerik.com/help/reporting/mvc-report-viewer-extension-embedding.html
The difference I change from the guide posted to my own project was to put the styleing in my MVC project css and add the the javascript files with the MVC bundles.
I am trying to view the reports from the reportviewer widget and am trying to use the follwing view to instantiate the widget
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl("/api/reports/")
.TemplateUrl("/ReportViewer/templates/telerikReportViewerTemplate.html")
.ReportSource(report)
.ViewMode(ViewModes.INTERACTIVE)
.ScaleMode(ScaleModes.SPECIFIC)
.Scale(1.0)
.PersistSession(false) )
but I am getting an error in the ReportViewer-8.0.14 file in the throwIfNoReportInstance() function saying the report instance Id is undefined. I know this is because the report instance is not created, but I am wondering where the report is instantiated at. Thanks