SaveFormat

SaveFormat enumeration

Indicates the format in which the document is saved.

public enum SaveFormat

Values

NameValueDescription
Unknown0Default, invalid value for file format.
Doc10Saves the document in the Microsoft Word 97 - 2007 Document format.
Dot11Saves the document in the Microsoft Word 97 - 2007 Template format.
Docx20Saves the document as an Office Open XML WordprocessingML Document (macro-free).
Docm21Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document.
Dotx22Saves the document as an Office Open XML WordprocessingML Template (macro-free).
Dotm23Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template.
FlatOpc24Saves the document as an Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package.
FlatOpcMacroEnabled25Saves the document as an Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package.
FlatOpcTemplate26Saves the document as an Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package.
FlatOpcTemplateMacroEnabled27Saves the document as an Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package.
Rtf30Saves the document in the RTF format. All characters above 7-bits are escaped as hexadecimal or Unicode characters.
WordML31Saves the document in the Microsoft Word 2003 WordprocessingML format.
Pdf40Saves the document as PDF (Adobe Portable Document) format.
Xps41Saves the document in the XPS (XML Paper Specification) format.
XamlFixed42Saves the document in the Extensible Application Markup Language (XAML) format as a fixed document.
Svg44Saves the document in the Svg (Scalable Vector Graphics) format.
HtmlFixed45Saves the document in the HTML format using absolutely positioned elements
OpenXps46Saves the document in the OpenXPS (Ecma-388) format.
Ps47Saves the document in the PS (PostScript) format.
Pcl48Saves the document in the PCL (Printer Control Language) format.
Html50Saves the document in the HTML format.
Mhtml51Saves the document in the MHTML (Web archive) format.
Epub52Saves the document in the EPUB format.
Azw353Saves the document in the AZW3 format.
Mobi54Saves the document in the MOBI format.
Odt60Saves the document as an ODF Text Document.
Ott61Saves the document as an ODF Text Document Template.
Text70Saves the document in the plain text format.
XamlFlow71Beta. Saves the document in the Extensible Application Markup Language (XAML) format as a flow document.
XamlFlowPack72Beta. Saves the document in the Extensible Application Markup Language (XAML) package format as a flow document.
Markdown73Saves the document in the Markdown format.
Xlsx80Saves the document as an Office Open XML SpreadsheetML Document (macro-free).
Tiff100Renders a page or pages of the document and saves them into a single or multipage TIFF file.
Png101Renders a page of the document and saves it as a PNG file.
Bmp102Renders a page of the document and saves it as a BMP file.
Emf103Renders a page of the document and saves it as a vector EMF (Enhanced Meta File) file.
Jpeg104Renders a page of the document and saves it as a JPEG file.
Gif105Renders a page of the document and saves it as a GIF file.
Eps106Renders a page of the document and saves it as an EPS file.
WebP107Renders a page of the document and saves it as a WebP file.

Examples

Shows how to convert from DOCX to HTML format.

Document doc = new Document(MyDir + "Document.docx");

doc.Save(ArtifactsDir + "Document.ConvertToHtml.html", SaveFormat.Html);

See Also