expression.PrintSection
expression 必需。返回“Applies To”列表中的一个对象的表达式。
PrintSection 属性使用以下设置:
设置 | 说明 |
---|---|
True | (默认值)打印该节。 |
False | 不打印该节。 |
Microsoft Access 在每个节的 Format 事件之前,都将该属性设为 True。
下面的示例不打印“产品摘要”报表的节“页面页眉节”。
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
Reports("Product Summary").PrintSection = False
End Sub