OpenDocuments.EditDocument3 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 document for editing with its associated application or with the specified editor based on the specified window object, and specifies whether to use a local copy.

expression.EditDocument2(pdisp, bstrDocumentLocation, fUseLocalCopy, varProgID)

Parameters

expression

An expression that returns an OpenDocuments Control object.

pdisp

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

bstrDocumentLocation

A string that contains the URL of the document to open for editing.

fUseLocalCopy

true to use a local copy; otherwise false.

varProgID

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

Return Value

true if the document was successfully opened; otherwise false.