Posted 20 May 2018, 7:15 pm EST
Hi I am calling a report using the web api and have a reportviewer on a MVC page setting the service URL, reportname and filepath as per your examples.
The report in question relies upon a parameter in its datasource, but I cannot see how I can either pass this parameter to the web api or whether I need to set this at runtime on the report.
Any help here as to the correct method would be appreciated.
@(Html.C1().ReportViewer()
.ServiceUrl(@“http://localhost:48775/api/report”)
.FilePath(@“ReportsRoot/myReport.flxr”).ReportName(@“Report1”)
.CssStyle(“width”, “90%”)
.ZoomMode(ZoomMode.PageWidth)
.ThresholdWidth(650)
)