简体   繁体   English

SSRS 2008:如何报告多个值?

[英]SSRS 2008: How to do multiple values report?

Right now I have an application which uses Reporting Services to render reports. 现在,我有一个使用Reporting Services呈现报告的应用程序。 This is working nicely, I call each report with a given value (eg a ClientId), and the report gets rendered correctly. 这工作得很好,我使用给定的值(例如ClientId)调用每个报表,并且报表可以正确呈现。

However, what I'd like to do now is being able to send multiple ClientIDs to the report, and would like to get 1 pdf file with count(ClientsIDs) pages, each containing the report, according to the ClienID. 但是,根据ClienID,我现在想做的是能够将多个ClientID发送到报告,并希望获得1个带有count(ClientsIDs)页的pdf文件,每个页面都包含报告。

How is that possible? 那怎么可能? I don't really know how to name what I want to do, so I don't really find answers on the net right now. 我真的不知道该如何命名,所以现在我还没有真正在网上找到答案。 Maybe someone has a tutorial for me? 也许有人为我准备了教程?

Thanks in advance ! 提前致谢 !

I believe what you're looking for are multi-value parameters. 我相信您正在寻找的是多值参数。 You could create a new "main" report that contains a multi-value param to accept your client IDs. 您可以创建一个新的“主”报告,其中包含一个接受您的客户ID的多值参数。 Then use a subreport as Martin already mentioned to generate your current report for each client ID. 然后使用马丁已经提到的子报告为每个客户ID生成当前报告。

Here's the MS page on multi-value params: http://msdn.microsoft.com/en-us/library/aa337292.aspx 这是有关多值参数的MS页面: http : //msdn.microsoft.com/zh-cn/library/aa337292.aspx

And I wrote an article about using them with a stored proc: http://blog.hoegaerden.be/2009/11/21/reporting-on-data-from-stored-procedures-part-2/ Even though in your case you may not be using SPs, it should help you to understand how these params work. 我写了一篇有关将它们与存储的proc一起使用的文章: http : //blog.hoegaerden.be/2009/11/21/reporting-on-data-from-stored-procedures-part-2/即使您遇到这种情况您可能没有使用SP,它应该可以帮助您了解这些参数的工作方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM