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");

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp