ApplicationEvents.XDocumentBeforePrint Event

InfoPath Developer Reference

Occurs immediately before any open document is printed.

Version Information
 Version Added:  InfoPath 2007

Syntax

expression.XDocumentBeforePrint(pDocument, pfCancel)

expression   An expression that returns an ApplicationEvents object.

Parameters

Name Required/Optional Data Type Description
pDocument Required XDocument A reference to the active document.
pfCancel Required Boolean If set to True, the document is not printed.

Return Value
Nothing

Remarks

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

See Also