[英]How to use microsoft reporting services with .net core
I'm interested in using reporting services in my vue.js .net core project.我有兴趣在我的 vue.js .net 核心项目中使用报告服务。 I don't need the reportviewer control, just to execute the appropriate code to process it remotely to return as a bytestream into a .pdf.我不需要 reportviewer 控件,只是为了执行适当的代码来远程处理它以作为字节流返回到 .pdf 中。
I have my previous code I used with the microsoft.reporting.webforms namespace in an ASP.net MVC / angularjs project to do the same thing, but the webforms implementation will no longer work with the .net core pipeline.我有我以前在 ASP.net MVC / angularjs 项目中与 microsoft.reporting.webforms 命名空间一起使用的代码来做同样的事情,但 webforms 实现将不再与 .net 核心管道一起使用。
Does anyone know how to call an SSRS report remotely using .net core 1.1?有谁知道如何使用 .net core 1.1 远程调用 SSRS 报告? In .net 4.x this was done via ReportViewer.ServerReport.Render("PDF", etc...)在 .net 4.x 中,这是通过 ReportViewer.ServerReport.Render("PDF", etc...) 完成的
thanks.谢谢。
SSRS offers a report execution web service that allows developers to do exactly what you're trying to do. SSRS 提供了一个报表执行 Web 服务,它允许开发人员准确地执行您想要执行的操作。 In fact, the ReportViewer control that you were previously using is most likely using this web service behind the scenes.事实上,您之前使用的 ReportViewer 控件很可能在幕后使用此 Web 服务。 This means that it is still possible to render a report remotely, but this time instead of doing it through the report viewer control (which does not work with .NET Core), you will do it by accessing the web service directly.这意味着仍然可以远程呈现报表,但这次不是通过报表查看器控件(不适用于 .NET Core)来完成,而是通过直接访问 Web 服务来完成。
You will want to take a look at the documentation regarding this web service here .您需要在此处查看有关此Web 服务的文档。 Specifically, you will want to look at the Render and Render2 methods which will render the report and return it back to you in a byte[]
.具体来说,您将需要查看Render和Render2方法,它们将呈现报告并将其以byte[]
返回给您。
The answer has been to follow other posts. 答案是关注其他帖子。 I'm using the alan juden port for SSRS to .net core and the ExportReport function from the package to generate my report. 我正在使用alan juden端口用于SSRS到.net核心,并使用包中的ExportReport函数来生成我的报告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.