Will there be a SSRS reportviewer in ASP.NET 5 MVC

2020-07-22 03:36发布

问题:

I am working on upgrading an ASP.NET 4.0 WebForms app to MVC6 and cannot find a solution for displaying SSRS reports. With the absents of System.Web the Microsoft ReportViewer control no longer works. What is the best practice for displaying SSRS reports on the web in ASP.NET 5?

回答1:

@Brian - ASP.NET MVC 6 is still in beta stage, its very early to plan for upgrading ASP.NET 4 web forms to MVC 6.

Please try using ASP.NET MVC 5 for upgrading web forms, it (MVC5) will be there for many years to come.

ASP.NET 5 will take good amount of time to mature, so don't hurry.



回答2:

There's no direct support for the SSRS in MVC, but there's are common workaround using an iframe. Basically create a webforms project that provides a services to the SSRS reports and inject that into your view.

Have a look at https://github.com/ilich/MvcReportViewer I haven't tested it, however its still a glorified wrapper to a webforms iframe in the end. You can find it on NuGet.

There are also paid solutions like Telerik Reports and alike.