适用于
Report 对象 |
PrintSection 属性指定是否应打印某个分区。 读取/写入布尔。
表达式.PrintSection
表达式 必需。 返回“适用范围”列表中的对象之一的表达式。
备注
PrintSection 属性使用以下设置。
设置 |
说明 |
---|---|
正确 |
(默认)要打印该分区。 |
False |
不打印该分区。 |
注意: 要设置此属性,可为分区的 OnFormat 属性指定 宏 或事件过程。
Access 在每个部分的 Format 事件之前将此属性设置为 True。
示例
以下示例不打印“产品摘要”报表的“PageHeaderSection”分区。
Private Sub PageHeaderSection_Format _
(Cancel As Integer, FormatCount As Integer)
Reports("Product Summary").PrintSection = False
End Sub