ApplicationEvents.NewXDocument Event
InfoPath Developer Reference |
Occurs when a new form is created.
Version Information
Version Added: InfoPath 2007
Syntax
expression.NewXDocument(pDocument, )
expression An expression that returns an ApplicationEvents collection.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
pDocument | Required | XDocument | A reference to the document created. |
Return Value
nothing
Remarks
The NewXDocument 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