OpenXMLDocuments.EditDocument Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Opens the specified XML document or form for editing within its associated application.

expression.EditDocument(bstrDocumentLocation As String, bstrDocumentID As String)



An expression that returns an OpenXMLDocuments Control object.


A string that contains the URL of the location of the XML document or form to open for editing.


A string that contains the ProgID of the application, stored in Windows SharePoint Services as promoted from the XML file. It is used by the launch application (for example, inlaunch.dll) to determine the application—used to edit the XML document or form—to pass the command into. Recommended usage is to use the ProgID property set through XML property promotion in the properties.xfp file.

Return Value

true if the XML document or form successfully opens; otherwise false.

See Also


OpenXMLDocuments Control

OpenXMLDocuments Members