Indicates the format in which the document is saved.
[Visual Basic]
Public Enum SaveFormat
[C#]public enum SaveFormat
Remarks
Example
Converts from DOC to HTML format.
[C#]
Document doc = new Document(MyDir + "Document.doc");
doc.Save(MyDir + "Document.ConvertToHtml Out.html", SaveFormat.Html);
[Visual Basic]
Dim doc As Document = New Document(MyDir & "Document.doc")
doc.Save(MyDir & "Document.ConvertToHtml Out.html", SaveFormat.Html)
Members
| Member Name | Description | Value |
| None | Default, invalid value for file format. | 0 |
| Doc | Saves the document in the Microsoft Word 97 - 2003 Document format. | 1 |
| Docx | Saves the document as a Microsoft Office 2007 Open XML Document (macro-free). | 8 |
| Docm | Saves the document as a Microsoft Office 2007 Open XML Macro-Enabled Document. | 9 |
| Rtf | Saves the document in the RTF format. All characters above 7-bits are escaped as hexadecimal or Unicode characters. | 6 |
| WordML | Saves the document in the Microsoft Word 2003 WordprocessingML format. | 5 |
| Pdf | Saves the document in the PDF directly (without going through Aspose.Pdf). | 15 |
| Html | Saves the document in the HTML format. | 4 |
| Mhtml | Saves the document in the MHTML (Web archive) format. | 13 |
| Text | Saves the document in the plain text format. | 2 |
| Odt | Saves the document in the OpenDocument format. | 12 |
| Epub |
Beta. Saves the document in the IDPF EPUB format. | 14 |
| AsposePdf | Saves the document in the Aspose.Pdf.Xml format that can be read by Aspose.Pdf to produce a PDF file. This is the legacy approach that will be later deprecated. | 3 |
Requirements
Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll)
See Also
Aspose.Words Namespace |