Reputation: 7388
I have a main report, with a space for a sub report. Depending on one of the main report parameters, I want to load one of many different possible sub reports. I got kind of excited when I saw a report path parameter in the subreportprocessingeventargs, but that turned out to be READ ONLY!
So, can someone please tell me it's possible to change the report definition programmatically? I've got my heart set on this!
Upvotes: 0
Views: 2044
Reputation: 6240
You can not choose between sub-reports. The but you can add all the sub-reports one after another the using the parameter form the main report set Hidden "False" only to one for the sub-reports. This way you will have all sub-reports in the report but only one will be shown.
Upvotes: 2