我有兴趣在我的 vue.js .net core 项目中使用报告服务。我不需要reportviewer 控件,只需执行适当的代码来远程处理它,以将其作为字节流返回到.pdf 中。
我以前的代码在 ASP.net MVC / angularjs 项目中与 microsoft.reporting.webforms 命名空间一起使用来执行相同的操作,但 webforms 实现将不再与 .net core 管道一起使用。
有谁知道如何使用.net core 1.1远程调用SSRS报告?在 .net 4.x 中,这是通过 ReportViewer.ServerReport.Render("PDF", 等等...) 完成的
thanks.
SSRS 提供了报告执行 Web 服务 https://learn.microsoft.com/en-us/sql/reporting-services/report-server-web-service/methods/report-server-web-service-endpoints这使得开发人员能够准确地完成您想要做的事情。事实上,您之前使用的 ReportViewer 控件很可能在幕后使用此 Web 服务。这意味着仍然可以远程呈现报表,但这次不是通过报表查看器控件(不适用于 .NET Core)来完成此操作,而是通过直接访问 Web 服务来完成。
您将需要查看有关此的文档网络服务在这里 https://msdn.microsoft.com/en-us/library/reportexecution2005.reportexecutionservice.aspx。具体来说,您需要查看Render https://msdn.microsoft.com/en-us/library/reportexecution2005.reportexecutionservice.render.aspx and Render2 https://msdn.microsoft.com/en-us/library/reportexecution2005.reportexecutionservice.render2.aspx方法将呈现报告并将其返回给您byte[]
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)