简体   繁体   English

如何将SSIS或.NET创建的Excel文件上载到SSRS报表服务器?

[英]How to upload Excel files created by SSIS or .NET to SSRS report server?

I have been given a task to generate a number of Excel files for our business and as a method of delivery I was considering SQL Server 2005 Reporting Services (SSRS). 我承担了为我们的业务生成大量Excel文件的任务,并且作为一种交付方式,我正在考虑使用SQL Server 2005 Reporting Services(SSRS)。

What I want to do is either generate the Excel spreadshhets from SSIS or a .Net (C#/VB) application then programatically upload the file to the appropriate area within SSRS. 我想做的是从SSIS或.Net(C#/ VB)应用程序生成Excel扩展表,然后以编程方式将文件上传到SSRS中的适当区域。

There does not appear to be any documentation for this so I'm not sure that this is supported but I did see this post which discusses report execution so was interested in other methods. 似乎没有任何相关文档,所以我不确定是否支持该文档,但是我确实看到了这篇讨论报告执行的文章,因此对其他方法感兴趣。

Microsoft.SqlServer.ReportExecution.ReportExecutionService rsExec = 
    new Microsoft.SqlServer.ReportExecution.ReportExecutionService();
    rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rsExec.Url = @"http://<ServerName>/reportserver/ReportExecution2005.asmx";

Does anyone have an experience in programatically uploading files to SSRS? 有没有人有过以编程方式将文件上传到SSRS的经验? Can you point me to any relevant articles? 你能指出我任何相关的文章吗?

There is a CreateResource method in the ReportingServices object model... see a description of uploading PDF's programmatically here . ReportingServices对象模型中有一个CreateResource方法...请参见此处以编程方式上传PDF的说明。 You can then modify that to your requriements. 然后,您可以将其修改为您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM