Reporting Services 2008 - Long subreports cause pa

2020-03-24 04:49发布

Similar to this question, but I have one "master" report which contains many subreports. Everything works great until one of the subreports, when rendered (to PDF, for example), will take up > the space left on a page. In this case, the page breaks so that the subreport starts on a new page. Sometimes this looks incredibly awkward when the one report only takes up a little bit of room on one page, then it breaks to the next page because the following subreport is too long. Any suggestions? It is not a width/margin problem, because when all of the subreports are short, it looks fine. Also, I am using HTML placeholders, and I do not have any margins set on the subreports, nor do I have any of these checked:

  • Add a page break before
  • Add a page break after
  • Keep contents on a single page, if possible

3条回答
Bombasti
2楼-- · 2020-03-24 05:17

In Reporting Services 2008, there is a new property on the Subreport called KeepTogether. This was always True in 2005 with no way to change it. We've had great success in getting rid of blank space and blank pages in 2008 (with exception to dynamic height property on charts, but thats another ticket).

Also check for KeepTogether on your grids, rectangles, etc.. and turn them all to False when you don't want them to stay together.

查看更多
Deceive 欺骗
3楼-- · 2020-03-24 05:38

Check the MS article KB938943, I was unable to fix this...

查看更多
▲ chillily
4楼-- · 2020-03-24 05:38

Do you have any groupings in the subreports that specify page breaks? If so, this may cause the page break. regardless of the settings in the 'master' report.

查看更多
登录 后发表回答