_ApplicationEvents_Event.XDocumentBeforePrint Event

Occurs immediately before any open document is printed.

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

Syntax

'Declaration
Event XDocumentBeforePrint As _ApplicationEvents_XDocumentBeforePrintEventHandler
'Usage
Dim instance As _ApplicationEvents_Event
Dim handler As _ApplicationEvents_XDocumentBeforePrintEventHandler

AddHandler instance.XDocumentBeforePrint, handler
event _ApplicationEvents_XDocumentBeforePrintEventHandler XDocumentBeforePrint

Remarks

The XDocumentBeforePrint event of the _ApplicationEvents_Event interface is primarily used with COM Add-ins. For more information about creating a COM Add-in for Microsoft InfoPath, see How to: Create a COM Add-in to Add Custom Features to InfoPath.

See Also

Reference

_ApplicationEvents_Event Interface

_ApplicationEvents_Event Members

Microsoft.Office.Interop.InfoPath Namespace