Introducedin | ||||
---|---|---|---|---|
|
Description |
---|
Excerpt |
---|
Opens and returns an existing Document from a SharePoint Document Library. |
Signature | ||||
---|---|---|---|---|
| ||||
<p>public Document Open(this WordApplication wordApplication, Microsoft.SharePoint.SPDocumentLibrary docLib, String fileName)</p> |
Signature | ||||
---|---|---|---|---|
| ||||
<p>Public Function Open(ByVal wordApplication As WordApplication, ByVal docLib As Microsoft.SharePoint.SPDocumentLibrary, ByVal fileName As String) As Document</p> |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The current WordApplication object which is calling Open |
Param | ||||
---|---|---|---|---|
| ||||
SharePoint Document Library from which the file is being opened |
Param | ||||
---|---|---|---|---|
| ||||
Filename of the document to open from the Document Library |
Returns |
---|
The document that is opened from the Document Library. |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
Thrown if an error occurs while opening the document. |
Remarks | ||
---|---|---|
Though the WordTemplate object currently supports Office Open XML (Word 2007) format files, WordApplication.Open() does not yet support them.
|
Example | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|