Inserting a Page break into an SSRS report

限于喜欢 提交于 2019-12-31 11:02:11

问题


I have a report in SSRS that contains 12 subreports. After each subreport, I need to insert a page break so that each subreport starts on a new page and doesn't share pages with the other subreports. Does anyone know how to do this? Thanks


回答1:


I found an answer. Use a Rectangle at the bottom of each SubReport after all Tablixes and other rendering Objects. Then set its "PageBreak" property to "End". When the SubReport is finished with the Tablix and/or other data objects, the Rectangle forces a page break. Also, a cool feature, if the SubReport returns no rows of data, the page break is not rendered. Therefore, no extra page breaks




回答2:


Another solution would be to have the subreports placed inside the rectangles. I would imagine this would help you to better control and organize the layout of the report.




回答3:


I tried the other answer here but my master report is driven by a dataset so didn't quite work out. This is how I got it to work for me:

1) I put the subreports into different rows on top of same size rectangles inside a Tablix with all the rows belonging to the same row group.

2) I then selected properties of the group, then pagebreak and checked the property pagebreak on between each instance of group.




回答4:


I came across the same kind of issue but I was able to overcome by below mentioned way. I created a sub report and placed rectangle inside the sub report (page break option checked before) and placed all my sub report content inside the rectangle. This page break works only if the sub report renders any data if not they will be no page break.




回答5:


I have made Many reports with a front Page Summary and Page 2 with the Detail. Use the Tablix for the Page Break Tablix > Properties > PageBreak > BreakLocation > Start / End / ......




回答6:


Just use the "Add page break after" on the General tab of Tablix Properties.




回答7:


Like other answers mention, I used the "Page break before" option on rectangles/tables, but for some reason it would only break the page if it wasn't at the very top of the (sub)report



来源:https://stackoverflow.com/questions/3230669/inserting-a-page-break-into-an-ssrs-report

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