Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ApplicationEvents4_DocumentBeforePrintEventHandler delegate

A Delegate type used to add an event handler for the DocumentBeforePrint event. The DocumentBeforePrint event occurs before any open document is printed.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

public delegate void ApplicationEvents4_DocumentBeforePrintEventHandler(
	Document Doc,
	out bool Cancel


Type: Microsoft.Office.Interop.Word.Document

The document that's being printed.

Type: System.Boolean

False when the event occurs. If the event procedure sets this argument to True, the document isn't printed when the procedure is finished.

© 2015 Microsoft