简体   繁体   English

如何在 .net core 中使用微软报告服务

[英]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[] .具体来说,您将需要查看RenderRender2方法,它们将呈现报告并将其以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.

相关问题 Microsoft Reporting Services。 我应该使用网络服务作为数据源吗? - Microsoft Reporting Services. Should I use webservices as a datasource? 如何使用或开始工作:VS.NET中的Reporting Services报表查看器组件 - How to use or get working: Reporting services report viewer component in VS.NET 如何在 asp.net 核心服务中使用 * 关键字。AddCors - How to use * keyword in asp.net core services.AddCors Microsoft Reporting Services不显示多个部分 - Microsoft Reporting Services not showing multiple sections 使用Stimulsoft在Asp.net Core中报告数据 - Use Stimulsoft for reporting data in Asp.net core 重新启动后自动启动 Microsoft Reporting Services - Automatically Start Microsoft Reporting Services after a Restart 在 ASP .net core 2.1 中使用 WCF 或 Reporting Services 和 AlanJuden MvcReportViewer 出现超时问题 - Timeout problem using WCF or Reporting Services with AlanJuden MvcReportViewer in ASP .net core 2.1 如何为自定义 .Net Core 中间件注册服务 - How To Register Services For Custom .Net Core Middleware 如何使用LoggerFactory和Microsoft.Extensions.Logging进行.NET Core Console使用C#进行日志记录 - How to Use LoggerFactory and Microsoft.Extensions.Logging for .NET Core Console Logging With C# 如何在 .NET Core 控制台应用程序中使用 Microsoft.Extensions.DependencyInjection? - How can I use Microsoft.Extensions.DependencyInjection in an .NET Core console app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM