Indicates the format of a document.
[Visual Basic]
Public Enum DocumentFormat
[C#]public enum DocumentFormat
Example
Shows how to detect format of the document from file.
[C#]
DocumentFormat format = DocumentFormatDetector.Detect(@"Documents\Welcome.xml");
Debug.WriteLine("Document format is " + format.ToString());
[Visual Basic]
Dim format As DocumentFormat = DocumentFormatDetector.Detect("Documents\Welcome.xml")
Debug.WriteLine("Document format is " & format.ToString())Members
| Member Name | Description | Value |
| None | Unknown or unsupported format. | 10 |
| Doc | Microsoft Word binary .DOC format. | 1 |
| Text | Plain text format. | 2 |
| AsposePdf | Aspose.Pdf.Xml format that can be read by Aspose.Pdf to produce a PDF file. | 3 |
| Html | HTML format. Uses UTF8 encoding. | 4 |
| Rtf | RTF format. All characters above 7-bits are escaped as hexadecimal or Unicode characters. | 5 |
| Docx | WordprocessingML (Microsoft Word 2003 XML) format. Uses UTF8 encoding. Microsoft Office 2007 Open XML format (macro-free). | 6 |
| Docm | Microsoft Office 2007 Open XML format Macro-Enabled Document. | 7 |
| Odt | OpenDocument Text. | 11 |
| Dot | Microsoft Word binary .DOT Template format. | 12 |
| Mhtml | HTML format. Uses UTF8 encoding. | 13 |
| WordML | | 0 |
Requirements
Namespace: Aspose.Editor.Server
Assembly: Aspose.Editor.Server (in Aspose.Editor.Server.dll)
See Also
Aspose.Editor.Server Namespace