Last modified: July 10, 2008
Applies to: SharePoint Foundation 2010
Opens the specified XML document or form template for customization within its associated application based on the specified instance of Internet Explorer.
An expression that returns an OpenXMLDocuments Control object.
An Object representing a pointer to the Internet Explorer instance that is calling the CustomizeTemplate2 method. Using a null value for this argument results in the method being executed on the primary Internet Explorer thread. As an alternative, you can use the CustomizeTemplate method if you do not need to pass an object with this argument.
A string that contains the URL of the location of the document or form template to open for customization.
The following example opens an XML document or form template for customization, whose location is specified by the value for the strTempLoc variable that is passed to the CustomizeTemplate2 method. The example assumes the existence of a form named frmCustomizeDoc that has one input box named TempLocation.