简体   繁体   English

以 pdf 格式导出 SSRS 报告存在空白页问题

[英]Exporting the SSRS Report in pdf format is having blank page issues

In SSRS Report 2016, I have 2 tablixes.在 SSRS 报告 2016 中,我有 2 个表格。 The 2nd tablix contains only 4 columns.第二个 tablix 仅包含 4 列。

When I preview the report, It comes perfectly in one page but when I export the report in PDF format or click on the Print Layout button in the report, the whole 2nd table/tablix moves to the next page.当我预览报告时,它完美地出现在一个页面中,但是当我以 PDF 格式导出报告或单击报告中的打印布局按钮时,整个第二个表格/tablix 移动到下一页。

In my case, the sum (Body Width + Left margin + Right margin) is less than the resulting page width.就我而言,总和(Body Width + Left margin + Right margin)小于生成的页面宽度。 I set keep_together property to false but the 2nd table keeps rendering on the new page.我将keep_together属性设置为false ,但第二个表继续呈现在新页面上。 If the 2nd table has less content then it displays below the first table on the same page and if the content is a little bit large then the whole table shifted to the next page and if the content is too big then it starts displays on the 1st page below the first table on the same page and continues on next pages with the remaining content.如果第二个表格的内容较少,则显示在同一页面上的第一个表格下方,如果内容有点大,则整个表格移至下一页,如果内容太大,则从第一张开始显示在同一页面上的第一个表格下方的页面,并在下一页继续其余内容。 All the thing is happening when I am exporting report in PDF format, not on report preview.当我以 PDF 格式导出报告时,所有事情都在发生,而不是在报告预览中。 Any solution for this?有什么解决办法吗?

  1. Do you have dynamic col grouping or hidden textboxes?你有动态 col 分组或隐藏的文本框吗? in this case you need to make sure that when all the col visible on the reports it must have sum of width and margins less than the reports width.在这种情况下,您需要确保当报告上的所有 col 可见时,它的宽度和边距之和必须小于报告宽度。
  2. Cross check the report width from properties window sometimes it contains white spaces because of which this happens.从属性 window 交叉检查报告宽度,有时它包含空格,因此会发生这种情况。
  3. Check whether you have added a page break after the tablix.检查是否在 tablix 之后添加了分页符。 If you did, and if there is nothing else to show after the tablix, then it will display blank on the next page.如果您这样做了,并且在 tablix 之后没有其他内容可显示,那么它将在下一页上显示为空白。

Another possible reason that may bring blank page is that there exists large white space between tablix and page footer.另一个可能导致空白页的原因是tablix和页脚之间存在很大的空白。

Please try these points once.请尝试这些要点一次。 Hope it resolve your issue.希望它能解决你的问题。

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

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