Dynamic Subreport Definition RRS feed

  • Question

  • I'm trying to do something similar to this but not with SSRS. I currently have a report with a subreport made up of a dynamically generated RDLC. This works fine.

    Now I want to be able to generate multiple reports as one. I can create a new report with a list containing a subreport pointing to my existing report, but each existing report has a unique dynamically generated subreport. So I'm stuck trying to figure out how to load subreport definitions for each of these and tie them to the appropriate report.

    I could make a call like LoadSubreportDefinition("Subreport1"...), LoadSubreportDefinition("Subreport2"...) for each of my dynamically generated subreports, but there seems to be no way to link those names to the subreport name specified in the report as it won't accept an expression.

    I don't know if there's an option to render each report and then merge them together afterwards, but that would work if possible.

    Any ideas?

    I'm using report viewer 2008 if it matters.

    Thursday, April 12, 2012 7:57 PM