PrintSection 属性

       
PrintSection 属性指定是否要打印某节。Boolean 型,可读写。

expression.PrintSection

expression   必需。返回“Applies To”列表中的一个对象的表达式。

说明

PrintSection 属性使用以下设置:

设置 说明
True (默认值)打印该节。
False 不打印该节。

如果要设置该属性,可以将一个或事件过程指定给节的 OnFormat 属性。

Microsoft Access 在每个节的 Format 事件之前,都将该属性设为 True

示例

下面的示例不打印“产品摘要”报表的节“页面页眉节”。

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
 
    Reports("Product Summary").PrintSection = False
 
End Sub