【问题标题】:Launch Reporting Services Reports from .Net Code从 .Net 代码启动 Reporting Services 报告
【发布时间】:2010-11-24 05:05:32
【问题描述】:

从 .Net 代码启动报告服务报告的最佳方式是什么?一种方法是动态构建 URL 并启动浏览器。像这样的:

http://server/ReportServer/Pages/ReportViewer.aspx?%2fReport+Directory%2fReport%20Name&FirstParameter=1,2,3&SecondParameter=8/30/2009&rs%3aCommand=Render

我不喜欢它如何创建对特定 URL 的依赖——尤其是报告参数很可能会发生变化。有没有更好的办法?

我要链接到的报告位于托管在一台(最终是两台)服务器上的多个报告服务项目中。

【问题讨论】:

    标签: .net vb.net reporting-services integration


    【解决方案1】:

    Integrating Reporting Services into Applications给你3个选项

    除了 URL 访问之外,您还可以使用 SOAP 调用 RS Web 服务或使用 ReportViewer 控件。

    无论哪种方式,您都依赖于 URL(但这就是 Web 服务的工作方式),除非您使用 local processing mode 中的 ReportViewer 控件。

    【讨论】:

      【解决方案2】:

      你可以使用 System.Diagnostics.Process 启动上面的 url 吗?

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2023-03-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多