Share via


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)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub ApplicationEvents4_DocumentBeforePrintEventHandler ( _
    Doc As Document, _
    <OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As New ApplicationEvents4_DocumentBeforePrintEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_DocumentBeforePrintEventHandler(
    Document Doc,
    out bool Cancel
)

Parameters

  • Cancel
    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.

See Also

Reference

Microsoft.Office.Interop.Word Namespace