Answered by:
Subreport Headers/footers

Question
-
How to display the subreport Headers/footers in Main report (in SSRS SQL server 2008 r2)?
Thanks In Advance
Monday, May 4, 2015 2:37 PM
Answers
-
Hi Esha2nk,
Per my understanding that you have add page footer and page header on the subreport, you have insert this subreport into the main report and now you want the page footer and header repeat of the subreport to repeat on each page page of the main report, right?
I have tested on my local environment and I will suggest you to add the subreport's page header and page footer on the main report's page header and footer area, then you add page break on the main report's row group, we can hide the subreport's page header and page footer is the page only display the information of the main report or the page header and footer will show.
Details information for your reference:
- I have design an sample report as below which have add page break on the row group:
- Add expression on the textbox "Subreport Page Header" if you want only the page include the subreport to display the page header and footer:
example:
page1:main report information
Page2 and page3 will display subreport's information
Expression:
=switch(Globals!PageNumber=1,true,Globals!PageNumber=2 or Globals!PageNumber=3,false) - Preview like below:
If you still have any problem, please feel free to ask.
Regards,
Vicky LiuVicky Liu
TechNet Community Support- Marked as answer by Vicky_Liu Thursday, May 21, 2015 9:07 AM
Tuesday, May 12, 2015 3:38 AM - I have design an sample report as below which have add page break on the row group:
All replies
-
Hi, You cannot display subreport Headers/footers in main report.
Instead of that what ever you would like to display as Headers/Footers , put the same information by creating a row in table/Matrix tools.
header information in a row
subreport
Footer information in a rpw
Finally, remove Headers / footers in subreport as you are already displaying in the main report itself.
Maruthi... http://www.msbimaru.blogspot.com/
- Edited by Maruthi Siva Prasad VM (MCP,MCSA,MCTS) Monday, May 4, 2015 6:49 PM
- Proposed as answer by Vicky_Liu Tuesday, May 5, 2015 12:54 AM
Monday, May 4, 2015 6:49 PM -
Thank You! Your response is greatly appreciated.
As per your solution, I have implemented in my report
But now the problem is subreport content others 12 tables which render data into two pages ( PDF) and table which treated as header not repeating on second page.
Is there a solution for it...
- Edited by Esha2nk Tuesday, May 5, 2015 12:14 PM
Tuesday, May 5, 2015 11:55 AM -
Please try to enable tablix option in the main report and as well as in sub reports : Keep together in one page if possible
Maruthi... http://www.msbimaru.blogspot.com/
Tuesday, May 5, 2015 6:01 PM -
Hi Esha2nk,
Per my understanding that you have add page footer and page header on the subreport, you have insert this subreport into the main report and now you want the page footer and header repeat of the subreport to repeat on each page page of the main report, right?
I have tested on my local environment and I will suggest you to add the subreport's page header and page footer on the main report's page header and footer area, then you add page break on the main report's row group, we can hide the subreport's page header and page footer is the page only display the information of the main report or the page header and footer will show.
Details information for your reference:
- I have design an sample report as below which have add page break on the row group:
- Add expression on the textbox "Subreport Page Header" if you want only the page include the subreport to display the page header and footer:
example:
page1:main report information
Page2 and page3 will display subreport's information
Expression:
=switch(Globals!PageNumber=1,true,Globals!PageNumber=2 or Globals!PageNumber=3,false) - Preview like below:
If you still have any problem, please feel free to ask.
Regards,
Vicky LiuVicky Liu
TechNet Community Support- Marked as answer by Vicky_Liu Thursday, May 21, 2015 9:07 AM
Tuesday, May 12, 2015 3:38 AM - I have design an sample report as below which have add page break on the row group: