Share via


ApplicationEvents Interface

A collection of event objects representing InfoPath application events.

Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
'Usage

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, see _ApplicationEvents_Event.

The ApplicationEvents collection contains event objects used primarily with COM Add-ins to capture application-wide events. These events include:

Event

Description

NewXDocument

Occurs when a new form is created.

Quit

Occurs when the user quits InfoPath.

WindowActivate

Occurs when any document window is activated.

WindowDeactivate

Occurs when any document window is deactivated.

WindowSize

Occurs when any document window is resized or moved.

XDocumentBeforeClose

Occurs immediately before any open document closes.

XDocumentBeforePrint

Occurs immediately before any open document is printed.

XDocumentBeforeSave

Occurs immediately before any open document is saved.

XDocumentChange

Occurs when a new form is created, when an existing form is opened, or when another form is made the active form.

XDocumentOpen

Occurs when a document is opened.

Microsoft Office InfoPath 2007 supports COM Add-ins for extending the form editing user experience. New to Office InfoPath 2007, other Office applications such as Microsoft Office Word and Microsoft Office Excel have supported COM add-ins since Office 2000. COM Add-in support in Office InfoPath 2007 is available in the form editing environment. The form design environment is not able to be extended through the use of COM Add-ins. For more information about using the ApplicationEvents collection and creating a COM Add-in for Office InfoPath 2007, see How To: Create a COM Add-in to Add Custom Features to InfoPath.

See Also

Reference

ApplicationEvents Members
Microsoft.Office.Interop.InfoPath Namespace