FFWinPlugin.ViewDocument2
Applies to: SharePoint Foundation 2010
Opens the document for reading instead of editing so that the document is not locked on the server, and opens it in a specified window.
expression.ViewDocument2(pdisp, bstrDocumentLocation, varProgID)
Parameters
expression
An expression that returns an FFWinPlugin 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 document to open for reading.
varProgID
An optional string that contains the programmatic identifier (ProgID) of the application with which to open the document. If this argument is omitted, the default viewer for the document is used.
Return Value
true if the document was successfully opened; otherwise, false.
Remarks
Use the ViewDocument method to open a document in its appropriate application, instead of inside an application instance that is embedded in the browser.