rtf - 在 BI Publisher rtf 模板的 for-each 循环中使用分节符
问题描述
我试图在我的 BI Publisher RTF 模板中包含一个分节符,以便我可以为文档的不同部分设置不同的打印选项。
在我在 for-each 循环中添加分节符之前,我的模板工作正常。我无法弄清楚到底发生了什么,但是有了分节符,我的输出中就会出现额外的重复页面。我在网上找不到任何关于如何在 BI 中使用分节符或它们的使用是否存在问题的信息。
我正在使用 BI Publisher Word Add-on 来开发报告。
这是一些示例来证明我的问题
解决方案
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.
推荐阅读
- java - 为什么这个 mySQL 数据库没有连接到 Netbeans?
- r - 对具有系统名称的多个变量运行相同的函数(即,基于试验编号)
- javascript - 错误的错误信息打印在错误的位置
- android-studio - 在 Android Studio 中将过滤器应用于图像时遇到问题
- reactjs - 如何使用 mapDispatchToProps 和父组件将道具传递给组件?
- java - 从异步方法调用spring上下文中的bean方法真的是并发的吗?
- javascript - 为什么我的 javascript 代码会在此 json 数据上读取 null 属性?
- azure-cognitive-search - 使用精确短语的 Azure 邻近搜索?
- javascript - 在 IE11 中未选中禁用 JavaScript 调试时阻止网页错误窗口
- tsql - 当我只需要知道是否超过 1 时,如何优化获取结果计数?