Export (0) Print
Expand All

_IInitEventHandler.InitEventHandler method

Handles the initialization event when a form is loaded in the hosted InfoPathEditor object.

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

void InitEventHandler(
	Object punkSender,
	_XDocument pDocument,
	out XdReadOnlyViewMode pROMode
)

Parameters

punkSender
Type: System.Object

A pointer to the source of the event.

pDocument
Type: Microsoft.Office.Interop.InfoPath._XDocument

A reference to the _XDocument object loaded into the InfoPathEditor object.

pROMode
Type: Microsoft.Office.Interop.InfoPath.XdReadOnlyViewMode

An XdReadOnlyViewMode enumeration that specifies how the view of the form will be presented.

InitEventHandler method executes after all auxiliary DOMs are loaded but before the OnLoad event occurs.

The InitEventHandler method is available for use when the InfoPathEditor object is hosted in a custom application. For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath 2007 Form Editing Environment in a Custom Windows Form Application and the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers.

Show:
© 2014 Microsoft