ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Using report parameters to pass values from Subreport to Main Report

Using report parameters to pass values from Subreport to Main Report

原创 Linux操作系统 作者:italucia 时间:2009-05-24 02:25:15 0 删除 编辑
Would like to pass values from Subreport to Main Report in SSRS ?
It is not supported in 2005, however, i found a way to realize it through using report parameters.
To simplify it, the scenario is as following:
 
There are 2 Subrepots in 1 Main Report , in the meanwhile in Subreport 1 there is a numerical number A.
While B in subreport 2.
 
The desired value C which i would like to present in the Main Report, equals to A+B.
 
The solution is:
first define A and B in Main Report parameters, create another two new datasets to get the values of A and B in MainReport.
Then in MainReport, the expression could be written using the two report parameters in MainReport in order to get the values in SubReports.
 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12374161/viewspace-600886/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-05-08

  • 博文量
    28
  • 访问量
    27869