报告结构

报告模板的结构是由首页和章节标记来决定的。

fp:frontpage 标记

每个 fp:reporttemplate 都可以包含 fp:frontpage 标记。fp:frontpage 标记会插在目录之前,目录中不包含其章节。首页标记可以包含与章节标记类似的标记,但首页标记不包含属性。快速报告会忽略 fp:frontpage 标记。

以下示例显示了一个首页标记:
<fp:frontpage>
<fp:text>This is the front page</fp:text>
</fp:frontpage>

fp:chapter 标记

fp:chapter 标记可决定报告的结构。章节标记具有以下标记: fp:chapter 标记具有以下属性:
表 1. fp:chapter 属性
属性 描述
heading 必需属性,用于表示章节的标题。 如果 hideheading="true",那么该属性不是必需属性。
hideheading 可选属性,用于确定是显示还是隐藏标题。 缺省值为 hideheading="false"

示例

<fp:chapter heading="Chapter 1">
<fp:text>This is chapter 1.</fp:text>
<fp:chapter heading="Chapter 1.1">
<fp:text>This is chapter 1.1.</fp:text></fp:chapter>
</fp:chapter>

反馈