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

两盒软妹~` 提交于 2019-12-12 03:37:57

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/37870999/how-to-have-an-ssrs-report-export-to-different-excel-sheets-by-each-subreport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!