Description |
---|
Excerpt |
---|
Opens and returns an existing Document from disk. |
Signature | ||||
---|---|---|---|---|
| ||||
public Document Open(System.String fileName) |
Signature | ||||
---|---|---|---|---|
| ||||
Public Function Open(ByVal fileName As String) As Document |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The complete path and filename of the document to open from disk. |
Returns |
---|
The document that is opened from disk. |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|