在报告参数中设置值(远程模式下的报告查看器)
我已经在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅我之前的帖子:
设置报告参数
See my previous post:
Setting Report Parameters
我假设您可以创建一个获取用户名的网页,然后您可以将其作为 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