如何使用 SSRS 以编程方式创建和检索快照?

发布于 2024-08-03 23:52:38 字数 352 浏览 8 评论 0原文

我正在尝试创建一个快照并稍后以编程方式将其拉出。我已经完成了第一部分(如下所示),但我似乎无法找到一种方法来根据某些唯一标识符稍后将相同的快照拉出来......

Dim rs As ReportingService2005.ReportingService2005 = New ReportingService2005.ReportingService2005()

rs.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials

Dim snapID = rs.CreateReportHistorySnapshot(reportname, Nothing)

I'm trying to create a snapshot and pull it back out later programmatically. I have the first part working (shown below) but I can't seem to find a way to pull this same snapshot back out later based on some unique identifier ...

Dim rs As ReportingService2005.ReportingService2005 = New ReportingService2005.ReportingService2005()

rs.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials

Dim snapID = rs.CreateReportHistorySnapshot(reportname, Nothing)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

×眷恋的温暖 2024-08-10 23:52:38

Render 方法 接受可选的 HistoryID 参数:

要为指定报表呈现的报表历史快照的唯一标识符。该标识符基于报告历史记录的创建日期和时间。

奇怪的是,2005 年和 2008 年 Web 服务的文档中缺少该方法。

如果您使用 URL 呈现,还可以指定 rs:Snapshot 参数。

The Render method accepts an optional HistoryID parameter:

The unique identifier of a report history snapshot to render for the specified report. The identifier is based on the date and time the report history was created.

Curiously, that method is missing from the documentation for the 2005 and 2008 web services.

You can also specify an rs:Snapshot parameter if you're using URL rendering.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文