首页 > 解决方案 > 在 BI Publisher rtf 模板的 for-each 循环中使用分节符

问题描述

我试图在我的 BI Publisher RTF 模板中包含一个分节符,以便我可以为文档的不同部分设置不同的打印选项。

在我在 for-each 循环中添加分节符之前,我的模板工作正常。我无法弄清楚到底发生了什么,但是有了分节符,我的输出中就会出现额外的重复页面。我在网上找不到任何关于如何在 BI 中使用分节符或它们的使用是否存在问题的信息。

我正在使用 BI Publisher Word Add-on 来开发报告。


这是一些示例来证明我的问题

示例 RTF

示例 XML

标签: rtfbi-publisher

解决方案


I changed my for loop from for-each-group to for-each@section.

Then I removed the at the end of the loop. Now the section breaks seem to work as expected, and a section break is automatically added between each loop.


推荐阅读