適用對象
Report 物件 |
PrintSection 屬性會指定是否應列印某區段。 讀/寫布林值。
expression.PrintSection
運算式 必要。 傳回 [套用至] 清單中其中一個對象的表達式。
備註
PrintSection 屬性使用以下設定。
設定 |
描述 |
---|---|
是 |
(預設) 要列印區段。 |
False |
不列印區段。 |
附註: 若要設定此屬性,請為區段的 OnFormat 屬性指定巨集或事件程序。
Access會在每一個區段的 Format 事件之前,將此屬性設為 True。
範例
下列範例不會列印 "Product Summary" 報表的 "PageHeaderSection" 區段。
Private Sub PageHeaderSection_Format _
(Cancel As Integer, FormatCount As Integer)
Reports("Product Summary").PrintSection = False
End Sub