Partilhar via


OpenXMLDocuments Control

Applies to: SharePoint Foundation 2010

An ActiveX control that enables users of Microsoft SharePoint Foundation 2010 to create XML documents or forms based on a specified template, or to edit XML documents or forms using their associated applications.

Remarks

One implementation of this control is defined in inlaunch.dll, a dynamic link-library (DLL) that is installed on the client computer during Microsoft InfoPath 2010 Setup.

To instantiate this control, use the following function in ECMAScript (JavaScript, JScript):

var obj = new ActiveXObject('SharePoint.OpenXMLDocuments');

In Microsoft Visual Basic Scripting Edition (VBScript), use the following to instantiate the control:

Set obj = CreateObject('SharePoint.OpenXMLDocuments')

In both cases, the argument is the programmatic identifier (ProgId) of the control, SharePoint.OpenXMLDocuments. The ProgId can include a version number: SharePoint.OpenXMLDocuments.3. If you do not specify a version number, the system uses the current version that is installed on the client computer. You can determine the currently installed version by examining the registry key HKLM\SOFTWARE\Classes\Sharepoint.OpenXMLDocuments\CurVer. For more information, see <ProgID> Key.