简体   繁体   English

如何在 SSRS 的 tablix 中的特定行上添加分页符?

[英]How do you add a page break on a specific row in a tablix in SSRS?

I've got an old report that was built with a tablix wrapped around everything else in the report.我有一个旧报告,它是用 tablix 构建的,它包裹着报告中的所有其他内容。 Inside this "master" tablix are other tablixes.在这个“主”tablix 中还有其他 tablix。 For one of the nested tablixes I want to add a page break before it.对于其中一个嵌套的 tablix,我想在它之前添加一个分页符。 I've tried wrapping the nested tablix in a rectangle and setting page break before to true and I've tried setting page break before to true for the nested tablix itself.我尝试将嵌套的 tablix 包装在一个矩形中,并将之前的分页符设置为 true,并且我尝试将嵌套 tablix 本身的分页符设置为 true。 Neither of these has any effect.这些都没有任何影响。

I also tried adding a parent row group and using this expression: =CEILING(RowNumber(Nothing)/14) since I want it to break on the 14th row but this also did not work correctly and just inserted random breaks all over the place.我还尝试添加一个父行组并使用以下表达式: =CEILING(RowNumber(Nothing)/14) 因为我希望它在第 14 行中断,但这也无法正常工作,只是在整个地方插入了随机中断。

In the master tablix there is a blank row between the nested tablix I need a page break before and a preceeding nested tablix.在主 tablix 中,我需要一个分页符之前的嵌套 tablix 和前面的嵌套 tablix 之间有一个空白行。 Is there a way to set that row to always have a page break?有没有办法将该行设置为始终有一个分页符? Can I put some kind of expression in one of the cells of the blank row that forces a page break?我可以在强制分页符的空白行的一个单元格中放置某种表达式吗?

You can apply a filter on the row (tablix properties) to break on the 14th row.您可以在行(tablix 属性)上应用过滤器以在第 14 行中断。 See below:见下文:

在此处输入图片说明

This will prevent the table from displaying more than 14 rows.这将防止表格显示超过 14 行。

Hope this helps.希望这可以帮助。

Thanks谢谢

Gav加夫

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

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