I have a .net core app in which I have a Telerik report which has two parameters and I have the code like so
I keep getting the error Unable to get report parameters. Report 'Sumared.trdp' cannot be resolved. Do I have to do something with the parameters in the reportSource? I think that when you add parameters via the Telerik Report Designer, do don't add anything in the reportSource besides the report name. The Telerik Designer previews the report just fine, works like it's supposed to but when I run the app it just keeps saying this - 'Unable to get report parameters. Report Sumaren.trdp cannot be resolved'
$(
"#summaryReport"
).click(
function
() {
var
viewer = $(
"#reportViewer1"
).data(
"telerik_ReportViewer"
);
viewer.reportSource({
report:
"Sumaren.trdp"
,
parameters: {}
});
viewer.refreshReport();
});
$(
"#reportViewer1"
)
.telerik_ReportViewer({
serviceUrl:
"api/reports/"
,
//ReportSource - report description
reportSource: {
// The report can be set to a report file name (trdx report definition)
// or CLR type name (report class definition).
},
viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
scale: 1.0,
enableAccessibility:
true
,
ready:
function
() {
this
.refreshReport();
},
});