简体   繁体   English

在SSRS矩阵报表中导出为PDF时为空白页

[英]Blank Page While Exporting as PDF in SSRS Matrix Report

I have created an SSRS Matrix report which shows 3 pages in output but when i export the report as a PDF, it shows 6 pages. 我创建了一个SSRS矩阵报告,该报告在输出中显示3页,但是当我将报告导出为PDF时,它显示6页。 One page is blank, although i selected the option ConsumeContainerWhiteSpace as True but still it is giving me a blank page as well the output pages are more than what is being shown in preview. 一页是空白的,尽管我选择了ConsumeContainerWhiteSpace选项为True,但它仍然给了我空白页,输出页也比预览中显示的要多。 I am using VS2013, kindly suggest. 我建议使用VS2013。

As some comments have already suggested you will need to do a bit of trial and error with your page layout, page size and report contents to ensure that there is no white space pushing onto other pages. 正如一些评论所建议的那样,您将需要对页面布局,页面大小和报告内容进行一些反复试验,以确保没有空白压入其他页面。

The easiest way I have found to do this is to use the Print Layout option when previewing the report in Report Builder (In the middle of the Ribbon when viewing the report preview), which previews the report as it would be exported to actual pages. 我发现最简单的方法是在“报表生成器”中预览报表时使用“ Print Layout选项(在查看报表预览时位于功能区的中间),它可以预览将要导出到实际页面的报表。 If it is still not obvious as to why the blank pages are there, you can set different background colours to your report items and report itself to see which colours show on the 'blank' pages. 如果仍然不清楚为什么有空白页,则可以为报表项设置不同的背景颜色,并自行报告以查看“空白”页上显示的颜色。 This will show you whether it is a report item or the report page layout that needs to be adjusted. 这将显示您是需要调整的报告项目还是报告页面布局。

Your tables are running over more than likely. 您的表运行超过了可能。

Click ruler button in toolbar and make sure width of tables + margins is less than 11 if landscape and 8.5 if potrait. 单击工具栏中的标尺按钮,并确保表格和边距的宽度(小于横向)小于11;如果横向,小于8.5。

Also if you right click outside of the report and select properties You can check your margins. 另外,如果您在报表外部右键单击并选择属性,则可以检查边距。 I like to use between 0 and .5. 我喜欢在0到.5之间使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM