Merging 2 SSRS reports

BeyondBGCM
BeyondBGCM used Ask the Experts™
on
hi

I have 2 SSRS reports , which i want to combine in one report , and generate one output , I know i can do that , by calling each of them as SubReport in one SSRS Report , but if i do that , it will hide the header of the reports , and it will be totally wrong.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ValentinoVBI Consultant
Most Valuable Expert 2011

Commented:
Headers and footers are indeed ignored when using subreports.  The reasoning behind that is that the header/footer of the main report is rendered and there can be only one header/footer.  So you'd have to recreate the header in the main report for it to be rendered in combination with the subreports.

If the above won't work for your case then only on option remains: create a new report that contains the content of both reports.  You'll have to ensure that the same datasets exist, that's a manual step.  Once you've got that, you can copy/paste most of the stuff.  A tablix for instance can be moved to another report by using copy/paste.  The only requirement for this to work is to have the same dataset (with the same name) as in the old report.

Let me know if you have any question about this.

Author

Commented:
some how , this is not very clear to me , with above message, can you please elaborate little more.
ValentinoVBI Consultant
Most Valuable Expert 2011

Commented:
Please explain what part is not clear...

The main message is: you cannot use headers or footers in subreports, they will not be rendered.

Author

Commented:
If the above won't work for your case then only on option remains: create a new report that contains the content of both reports.  You'll have to ensure that the same datasets exist, that's a manual step.  Once you've got that, you can copy/paste most of the stuff.  A tablix for instance can be moved to another report by using copy/paste.  The only requirement for this to work is to have the same dataset (with the same name) as in the old report.

do you mean , that we should use , 2 tablix for one report, and both will contain different data....?
BI Consultant
Most Valuable Expert 2011
Commented:
Well, indeed!  A report can have several different data sources, datasets and tablixes.  So you don't necessarily need to split that up into different subreports.  Subreports have the advantage that they can be used in more than one report though...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial