我有两页的SSRS报告。当我将它导出为PDF时,由于它的宽度,它需要4页,其中第2和第4页显示了我从表格中的一个字段。我试图在报告属性中设置布局大小为宽度=18英寸,高度=8.5英寸。

它在一页PDF中给了我整个表格,但我仍然得到第2页和第4页空白。

我做的方法不对吗?我还能怎么摆脱这些空白页呢?


当前回答

除了目前为止最常见的问题,我还看到了另外两种可能性:

使用+连接文本。你应该用&代替。 超出指定文本框宽度的文本。因此,如果你的文本框只容纳30个字符,而你试图在那里塞300个字符,你可能会以额外的页面结束。

其他回答

我已经成功地使用pdftk删除了我不想要/不需要的pdf页面。你可以在这里下载这个程序

您可以尝试以下方法。从这里举个例子

从in1.pdf中删除“page 13”以创建out1.pdf PDFTK in.pdf cat 1-12 14端输出out1.pdf

or:

pdftk A=in1.pdf cat A1-12 A14-end output out1.pdf

在与这个问题斗争了几个小时后,我偶然发现了一个适合我的解决方案:

在SSDT(2012)中,我最初将页面设置/页面单位设置为厘米。当我把它改为英寸时,奇怪的是,我可以将我的报告导出为PDF,而不用让每一页都是空白的。

在报告(myReport.rdlc)的属性选项卡上,将“Keep Together”属性更改为False。我一直在这个问题上挣扎了一段时间,这似乎解决了我的问题。

对我来说,问题是SSRS故意对待你的空白,就好像你想让它得到尊重一样:

和空白一样,确保没有右边距。

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!