Opens and returns an existing Document from a SharePoint Document Library.
<p>public Document Open(this WordApplication wordApplication, Microsoft.SharePoint.SPDocumentLibrary docLib, String fileName)</p>
<p>Public Function Open(ByVal wordApplication As WordApplication, ByVal docLib As Microsoft.SharePoint.SPDocumentLibrary, ByVal fileName As String) As Document</p>
The current WordApplication object which is calling Open
SharePoint Document Library from which the file is being opened
Filename of the document to open from the Document Library
The document that is opened from the Document Library.
Thrown if an error occurs while opening the document.