RepeatSection 属性

使用 RepeatSection 属性可以指定当某个组包含的内容大于一页或者一列时是否在下一页或者下一列重复显示组页眉。Boolean 型,可读写。

expression.RepeatSection

expression     必需。返回“应用于”列表中的一个对象的表达式。

说明

RepeatSection 属性仅应用于报表中的组页眉。

RepeatSection 属性使用以下设置:

设置

Visual Basic

说明

True

重复组页眉。

False

(默认值)不重复组页眉。

 

注释  使用组页眉节的属性表或者 Visual Basic,可以对 RepeatSection 属性进行设置。

在打印包含子报表的报表时,子报表的 RepeatSection 属性将决定是否在页面或者列中重复子报表组页眉。

示例

下面的示例将在每页的顶端打印组页眉“组页眉0”。

Reports("Purchase Order").Section("GroupHeader0").RepeatSection = True