ApplicationEvents.XDocumentBeforeClose Event
InfoPath Developer Reference |
Occurs immediately before any open document closes.
Version Information
Version Added: InfoPath 2007
Syntax
expression.XDocumentBeforeClose(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 closed. |
Return Value
Nothing
Remarks
The XDocumentBeforeClose 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