DocumentModelLoad Method (String) |
Loads a document from a file with the specified path.
Namespace:
GemBox.Document
Assembly:
GemBox.Document (in GemBox.Document.dll) Version: 31.0.35.1089
Syntaxpublic static DocumentModel Load(
string path
)
Public Shared Function Load (
path As String
) As DocumentModel
Parameters
- path
- Type: SystemString
The path from which to load a document.
Return Value
Type:
DocumentModelA loaded document.
Exceptions
Remarks
File extension that is extracted from the
path is used to create the appropriate
LoadOptions derived class instance that is then passed to the
Load(String, LoadOptions) method.
Following file extensions are supported:
- Microsoft Word: .docx, .docm, .dotm, .dotx
- Microsoft Word 97-2003: .doc, .dot
- HyperText Markup Language: .htm, .html, .mht, .mhtml
- Rich Text Format: .rtf
- Portable Document Format: .pdf
- Plain Text: .txt
See Also