Indicates the format of the document that is to be loaded.
[Visual Basic]
Public Enum LoadFormat
[C#]public enum LoadFormat
Example
Explicitly loads a document as HTML without automatic file format detection.
[C#]
Document doc = new Document(MyDir + "Document.LoadFormat.html", Aspose.Words.LoadFormat.Html, null);
[Visual Basic]
Dim doc As Document = New Document(MyDir & "Document.LoadFormat.html", Aspose.Words.LoadFormat.Html, Nothing)
Members
| Member Name | Description | Value |
| Auto | Instructs Aspose.Words to recognize the format automatically. | 0 |
| Doc | Microsoft Word 97 - 2003 Document format. | 1 |
| Docx | Microsoft Office 2007 Open XML format. | 5 |
| Rtf | RTF format. | 3 |
| WordML | Microsoft Word 2003 WordprocessingML format. | 4 |
| Html | HTML format. | 2 |
| Mhtml | MHTML (Web archive) format. | 7 |
| Odt | OpenDocument Text format (OpenOffice Writer) format. Beta! | 6 |
| Unknown | Unrecognized format, cannot be loaded by Aspose.Words. | 2147483647 |
Requirements
Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll)
See Also
Aspose.Words Namespace