我有两页的SSRS报告。当我将它导出为PDF时,由于它的宽度,它需要4页,其中第2和第4页显示了我从表格中的一个字段。我试图在报告属性中设置布局大小为宽度=18英寸,高度=8.5英寸。
它在一页PDF中给了我整个表格,但我仍然得到第2页和第4页空白。
我做的方法不对吗?我还能怎么摆脱这些空白页呢?
我有两页的SSRS报告。当我将它导出为PDF时,由于它的宽度,它需要4页,其中第2和第4页显示了我从表格中的一个字段。我试图在报告属性中设置布局大小为宽度=18英寸,高度=8.5英寸。
它在一页PDF中给了我整个表格,但我仍然得到第2页和第4页空白。
我做的方法不对吗?我还能怎么摆脱这些空白页呢?
当前回答
对我来说,问题是SSRS故意对待你的空白,就好像你想让它得到尊重一样:
和空白一样,确保没有右边距。
其他回答
确保设计师在visual studio没有超出你的最大宽度。将鼠标悬停在右侧页面边框上并向左拖动,以确保页面没有超出所需的布局。
另一件要尝试的事情是将名为ConsumeContainerWhitespace的报告属性设置为True(默认为false)。我就是这样解决的。
你有没有看一下你的报告右边是否有空白处?如果是这样,您可以将它拖回报表的末尾,然后将报表背景拖回相同的位置。
我刚刚减少了所有元素宽度小于8英寸,它正在被纠正, 我是用鼠标做的, 你的报告主体应该短于8英寸。
I have worked with SSRS for over 10 years and the answers above are the go to answers. BUT. If nothing works, and you are completely stuffed....remove items from the report until the problem goes away. Once you have identified which row or report item is causing the problem, put it inside a rectangle container. That's it. Has helped us many many times! Extra pages are mostly caused by report items flowing over the right margin. When all else fails, putting things inside a rectangle or an empty rectangle to the right of an item, can stop this from happening. Good luck out there!