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.