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