Introducedin | ||||
---|---|---|---|---|
|
Description |
---|
Excerpt |
---|
Opens and returns an existing Document from a SharePoint List Item. |
Signature | ||||
---|---|---|---|---|
| ||||
public Document Open(this WordApplication wordApplication, Microsoft.SharePoint.SPListItem listItem, String fileName) |
Signature | ||||
---|---|---|---|---|
| ||||
Public Function Open(ByVal wordApplication As WordApplication, ByVal listItem As Microsoft.SharePoint.SPListItem, ByVal fileName As String) As Document |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The current WordApplication object which is calling Open |
Param | ||||
---|---|---|---|---|
| ||||
SharePoint List Item from which the file is being opened |
Param | ||||
---|---|---|---|---|
| ||||
Filename of the document to open from the List Item |
Returns |
---|
The document that is opened from the List Item. |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|