|
Hello there, Thanks
(comments are locked)
|
|
Since the Main Report Parameters and Sub-report parameters have the same name, you just need to map the sub-report parameters with the respective Main report parameters values. For e.g. for first parameter @param1 Right Click the Sub-Report -> Click Sub-Report Properties -> Click Parameters -> Click Add -> Put param1 in the Name column and put [@param1] (I guess) in the Value column. Same needs to be done for the rest of the parameters. For more details, here is the link to BOL, where the key part of having the same parameter names is already done by you. How to: Add a Subreport and Parameters (Report Builder 3.0 and SSRS) Thank you much for your respond, I forgot to say those parameters are the parameters of which I used in Sproc to return the result set (Fields that I have in my report) therefore If I had not provide these values before any execution at any mean I had not have any result set to use in report and that is my problem for I think both main and sub will be generated at the same time. So when I used the method you mentioned my report returns "error occurred" and does not run. I don't know if there is a solution to pass the value to Main report and Sub report parameters at the same time and before they executed? Thanks
Jul 10 '12 at 02:58 AM
Naz
The way @Usmann described really works. You are probably missing the parameter mappints in the queries, or have a wrong order of parameters in report or sub report. If some parameter depends on other parameter (eg. a query is used to fill a parameter values and for that query another parameter is used than such parameter has to be in higher position in the parameters list. Check proper orders and mappintgs of all params. Also in the SSRS log yo uwill find more information why the report doesn't run and probably more detailed error message.
Jul 10 '12 at 05:26 AM
Pavel Pawlowski
(comments are locked)
|

