问题
How do I, pass a variable from one to another report when I launch a report through the Action Property of an Object? And how do I use the received string variable as the contents of a dataset or at least the contents of a defined variable in a dataset. Also, how would I be able to use that variable as text in a text box? Finally, how would I pass multiple variables?
回答1:
Passing parameters via URL
If you are working with Report parameters, you can pass parameters to a report via URL, as example:
https://myrshost/ReportServer?/AdventureWorks 2008R2/Employee_Sales_Summary_2008R2&ReportMonth=3&ReportYear=2008
Reference
- Pass a Report Parameter Within a URL
- Passing parameter via url to sql server reporting service
Drillthrough Reports
If you want to navigate from one report to another one, by clicking on an item or information that would be sent as parameter to another one. Then you should read about Drillthrough Reports.
- Drillthrough Reports (Report Builder and SSRS)
- Tutorial: Creating Drillthrough and Main Reports (Report Builder)
- Drill Through Report or Hyperlink to other SSRS Report Passing Values from one Report to Another in SSRS
- Drill Through Reports in SSRS
来源:https://stackoverflow.com/questions/54496783/in-ssrs-2008-how-do-pass-variables-from-one-report-to-another