SSRS - 分页问题
报告的结构类似于
主表
第 1 行 - 另一个包含主数据的表(某种标题)
第 2 行 - 分为两部分:第一部分有 4 列,第二部分是一个表格。
第 3 行 - 详细信息表
第 4 行 - 有点页脚。
现在任何地方都没有分页符了。不知何故,在某些记录的第 2 行之后有一个分页符。详细信息表显示在另一页上,而前两行位于另一页上。
属性 pageBreakAtEnd/pageBreakAtStart 在任何地方都是 false。
此外,当我为主表设置 pageBreakAtEnd 时,它不起作用。主表的下一个实例从同一页开始。
The structure of report is like
Main table
Row 1 - Another table with master data (sort of header)
Row 2 - Split into two sections : 1st section has 4 columns, second section is a table.
Row 3 - Detail Table
Row 4 - Kinda footer.
Now there are no page breaks anywhere. Somehow after Row 2 in some records there is a page break. The detail table is getting displayed on another page while the 1st two rows are on another page.
The properties pageBreakAtEnd/pageBreakAtStart are false everywhere.
In addition when I set the pageBreakAtEnd for the main table its not working. The next instance of the main table starts from the same page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于渲染器可能非常敏感(有充分的理由),因此您必须仔细注意任何给定报告的整体格式。有时,分页符(甚至页面溢出)会出现在最奇怪的情况下,很多时候是因为“页面”的宽度对于您要呈现的格式来说太大。
这也可能发生在垂直方向上(我认为这就是您的情况中发生的情况?),因此您可能想看看您的行元素之一是否可能以一种比在查看时看起来大得多的方式表达自己设计师。
一般来说,您应该尝试使事情尽可能简单和保守(相对于格式化尺寸)。分页/溢出最常见的问题之一是,HTML 版本中的某些内容看起来不错(通过 SSRS 报告管理器),但最轻微的边界侵犯会导致 PDF 导出版本完全失控。
另外,请仔细阅读这些分页符配置设置的实际用途。报表设计器中的设置很容易产生副作用,从而抵消其他配置。
Because renderer's can be very touchy (for good reason), you have to pay careful attention to the overall formatting of any given report. Sometimes page breaks (or even page overflows) appear in the strangest circumstances, a lot of times because the width of the "page" is too large for the format to which you are rendering.
This can also happen in the vertical (which is what I think is happening in your situation?), so you might want to see if one of your row elements could possibly be expressing itself in a way that is much larger than seems when viewing in the designer.
Generally speaking, you should try to keep things as simple, and conservative (with respect to formatting dimensions) as possible. One of the most common problems with page-breaks/overflows, is that something looks fine in the HTML version (through SSRS report manager), but then the slightest boundary encroachment causes the PDF exported version to go all out of whack.
Also, read up closely on what those page break configuration settings are actually doing. The settings in the report designer, can easily cause side effects that cancel out other configurations.