HTMLTaskPaneExternal Object

Microsoft Office InfoPath

Show All Show All

HTMLTaskPaneExternal Object

HTMLTaskPaneExternal

Represents a link to the Microsoft Office InfoPath 2003 object model. The HTMLTaskPaneExternal object is used to expose the InfoPath object model to the Dynamic HTML (DHTML) scripting code in a custom task pane.

The HTMLTaskPaneExternal object provides a number of properties for accessing certain parts of the InfoPath object model, including the XDocument object and the Window object.

Remarks

The HTMLTaskPaneExternal object facilitates using the InfoPath object model within the scripting code that is part of a custom task pane. The object is exposed through the external property of the DHTML window object.

Using the HTMLTaskPaneExternal object

In the following example, the HTMLTaskPaneExternal object is used through the external property of the DHTML window object to set a reference to the XDocument object that is part of the InfoPath object model:

    var objXDoc;

objXDoc  = window.external.XDocument;
objXDoc.View.SwitchView("View2");