OpenXMLDocuments.ViewDocument Method

OpenXMLDocuments.ViewDocument Method

Last modified: July 10, 2008

Applies to: SharePoint Foundation 2010

Opens the specified XML document or form for reading instead of editing, so that the document is not locked on the server.

expression.ViewDocument(bstrDocumentLocation As String, varProgID)


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 reading.


An optional string that contains the ProgID of the application with which to open the document. If this argument is omitted, the default viewer for the document is used.

true if the document was successfully opened; otherwise false.

© 2016 Microsoft