ilich / MvcReportViewer

ASP.NET MVC Html Helpers for ReportViewer Control.
MIT License
282 stars 131 forks source link

Can you refresh the report with new parameters? #214

Closed deynq closed 7 years ago

deynq commented 7 years ago

I'm trying to show a report from SSRS with this code.

@Html.MvcReportViewer(AppSettings.ReportServerPath , new { ReportUser = "This User"}), new { width = 1700, height = 800, style = "border: none" })

The report is displayed. But can I modify the ReportUser parameter and pass it the viewer and refresh the report?

ilich commented 7 years ago

You should do create a report model on your page and pass parameter from the model to the HTML helper. The rendering is done on the server, so you need to do POST or GET request. MvcReportViewer does not provide client side API for that.