【问题标题】:How to upload Excel files created by SSIS or .NET to SSRS report server?如何将 SSIS 或 .NET 创建的 Excel 文件上传到 SSRS 报表服务器?
【发布时间】:2013-02-01 09:36:02
【问题描述】:

我的任务是为我们的业务生成许多 Excel 文件,作为一种交付方法,我正在考虑使用 SQL Server 2005 Reporting Services (SSRS)。

我想做的是从 SSIS 或 .Net (C#/VB) 应用程序生成 Excel 电子表格,然后以编程方式将文件上传到 SSRS 中的适当区域。

似乎没有任何文档,因此我不确定是否支持此功能,但我确实看到了 this 帖子,其中讨论了报告执行,因此对其他方法感兴趣。

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

有人有以编程方式将文件上传到 SSRS 的经验吗?你能指出任何相关的文章吗?

【问题讨论】:

  • 您想使用 SSIS 将 SSRS 报告呈现到 excel 中吗?
  • 不是真的,只是让用户下载它。
  • 您可以使用 SSRS 运行 SSIS 包,并使用 SSIS 准备的数据集。这样我们就可以毫无问题地将 SSIS 数据发送到 SSRS。查找文章link。希望这会有所帮助

标签: .net sql-server ssis reportingservices-2005


【解决方案1】:

ReportingServices 对象模型中有一个 CreateResource 方法...请参阅以编程方式上传 PDF 的描述here。然后,您可以将其修改为您的要求。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-27
    • 1970-01-01
    • 2017-12-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多