excelreporting-servicesspreadsheetsubreport

How to have an SSRS report export to different excel sheets by each subreport?


I have a report that contains several subreports that are very similar to the main/base report. I want each subreport's data to be housed on a separate tab when the user exports the report as Excel.

I found a similar answer here, but it's not subreport-specific (I don't see a "PageBreak" property on Subreports, so the answer there doesn't seem to help me).

How can I cause the exported Excel file to break into separate sheets on each subreport, and with the name of each subreport on its respective sheet or the text property of the label that I place above each subreport?


Solution

  • Place the subreport inside of a rectangle control and set the PageBreak options on the rectangle.