(Access) 的 Report.PrintSection 屬性
PrintSection 屬性會指定是否應列印一節。 可讀寫的 Boolean。
語法
運算式。PrintSection
表達 代表 Report 物件的變數。
註解
PrintSection 屬性使用下列設定值。
設定 | 描述 |
---|---|
True | (預設值) 列印區段 |
False | 不列印區段 |
注意事項
[!注意事項] 若要設定此屬性,指定區段的 OnFormat 屬性巨集或事件程序。
Microsoft Access 會將此屬性設 為 True 每一個區段的 Format 事件之前。
範例
下列範例不會列印 產品摘要 報表的 PageHeaderSection 區段。
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
Reports("Product Summary").PrintSection = False
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。