在报告参数中设置值(远程模式下的报告查看器)

发布于 2024-10-07 07:32:55 字数 201 浏览 0 评论 0原文

我已经在 SSRS 2008 中创建了一个报告。我正在使用报告查看器来查看它。我有一个报告参数,它是用户名列表。我想以编程方式从该列表中选择一个特定值。

例如,用户:sdsmith 会转到该页面。网页将获取该用户名,对照 ReportParameter1 中的列表进行检查,然后如果在列表中找到该用户名,则将 ReportParameter1 的值设置为 sdsmith。

I have already created a report in SSRS 2008. I'm using the Report Viewer to view it. I have one Report Parameter which is a list of usernames. I'd like to programatically select a particular value from that list.

So for instance, user: sdsmith goes to the page. The webpage will grab that username, check it against the list in ReportParameter1, then set the value of ReportParameter1 to sdsmith if it's found in the list.

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

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

发布评论

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

评论(2

策马西风 2024-10-14 07:32:55

请参阅我之前的帖子:

设置报告参数

See my previous post:

Setting Report Parameters

煮酒 2024-10-14 07:32:55

我假设您可以创建一个获取用户名的网页,然后您可以将其作为 URL 的一部分传递到报表服务器上的实际报表。

http://social.msdn.microsoft .com/Forums/en/sqlreportingservices/thread/de8b7774-a766-4454-a817-81cc19bab4a3

I am assuming you would be OK with creating a web page that would get the username, and then you could pass it as part of the URL to the actual report on the report server.

http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/de8b7774-a766-4454-a817-81cc19bab4a3

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