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

别来无恙 提交于 2020-01-13 05:12:05

问题


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.



来源:https://stackoverflow.com/questions/33017829/will-there-be-a-ssrs-reportviewer-in-asp-net-5-mvc-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!