Hello, i am trying to setup a simple example of reports on our MVC 4 application but i am having difficulty in referencing my report.
i have setup my view and controller as described in these articles:
http://www.telerik.com/help/reporting/html5-report-viewer-embedding.html
http://www.telerik.com/help/reporting/telerik-reporting-rest-implementing-http-service.html
I do NOT want to use a trdx file to reference my report, i just want to be able to use the Report.cs file as we would have in the past. None of the documentation talks about using the .cs report files anymore, which is somewhat confusing.
According to this post, we still can use .cs report files.
When i try to view the report, the viewer is displayed but there is just a message saying 'Not Found'. So what is the correct way to reference a .cs report?
Currently my viewer is setup as:
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/api/reports/",
templateUrl: '../Content/ReportViewer/templates/telerikReportViewerTemplate.html',
reportSource: { report: 'new Telerik.Reporting.TypeReportSource() { TypeName = "Application.Reports.TestReport, Application" }' },
scale: 1.0
});
Application is the main assembly.
Reports is the folder where my reports are stored, in the Application project.
TestReport is the .cs report file.
what am i missing? please n thanks.
Edit: there is also a javascript error when the report is displayed that says:
Failed to load resource: http://localhost:53661/api/reports/clients/115240-ff1a/parameters
I assume its related to the fact that it cant find the report but thats about all i can figure out from that.
i have setup my view and controller as described in these articles:
http://www.telerik.com/help/reporting/html5-report-viewer-embedding.html
http://www.telerik.com/help/reporting/telerik-reporting-rest-implementing-http-service.html
I do NOT want to use a trdx file to reference my report, i just want to be able to use the Report.cs file as we would have in the past. None of the documentation talks about using the .cs report files anymore, which is somewhat confusing.
According to this post, we still can use .cs report files.
When i try to view the report, the viewer is displayed but there is just a message saying 'Not Found'. So what is the correct way to reference a .cs report?
Currently my viewer is setup as:
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/api/reports/",
templateUrl: '../Content/ReportViewer/templates/telerikReportViewerTemplate.html',
reportSource: { report: 'new Telerik.Reporting.TypeReportSource() { TypeName = "Application.Reports.TestReport, Application" }' },
scale: 1.0
});
Application is the main assembly.
Reports is the folder where my reports are stored, in the Application project.
TestReport is the .cs report file.
what am i missing? please n thanks.
Edit: there is also a javascript error when the report is displayed that says:
Failed to load resource: http://localhost:53661/api/reports/clients/115240-ff1a/parameters
I assume its related to the fact that it cant find the report but thats about all i can figure out from that.