This topic has not yet been rated - Rate this topic

OpenXMLDocuments.ViewDocument2 Method

Published: May 2010

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

expression.ViewDocument2(pdisp As Object, bstrDocumentLocation As String, varProgID)

expression

An expression that returns an OpenXMLDocuments Control object.

pdisp

An Object that represents the window from which the ViewDocument2 method is being activated.

bstrDocumentLocation

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

varProgID

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.

Date

Description

May 2010

Initial publication

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.