Enumerations


WdSaveFormat Enumeration
Specifies the format to use when saving a document.

Version Information
 Version Added:  

NameValueDescription
wdFormatDocument0Microsoft Office Word format.
wdFormatDOSText4Microsoft DOS text format.
wdFormatDOSTextLineBreaks5Microsoft DOS text with line breaks preserved.
wdFormatEncodedText7Encoded text format.
wdFormatFilteredHTML10Filtered HTML format.
wdFormatHTML8Standard HTML format.
wdFormatRTF6Rich text format (RTF).
wdFormatTemplate1Word template format.
wdFormatText2Microsoft Windows text format.
wdFormatTextLineBreaks3Windows text format with line breaks preserved.
wdFormatUnicodeText7Unicode text format.
wdFormatWebArchive9Web archive format.
wdFormatXML11Extensible Markup Language (XML) format.
wdFormatDocument970Microsoft Word 97 document format.
wdFormatDocumentDefault16Word default document file format. For Microsoft Office Word 2007, this is the DOCX format.
wdFormatPDF17PDF format.
wdFormatTemplate971Word 97 template format.
wdFormatXMLDocument12XML document format.
wdFormatXMLDocumentMacroEnabled13XML document format with macros enabled.
wdFormatXMLTemplate14XML template format.
wdFormatXMLTemplateMacroEnabled15XML template format with macros enabled.
wdFormatXPS18XPS format.


Tags :


Community Content

Corey_33321
Two zero values

Are both wdFormatDocument and wdFormatDocument97 really 0? I don't want to use the enumerator name as I only have Office 2003 installed on my developement computer.

Tags : save as version

Doc Tari
wdFormatDocumentDefault
Concerning: wdFormatDocumentDefault .... Word default document file format. For Microsoft Office Word 2007, this is the DOCX format.

This actually depends on the Save settings . A default file format can be entered there. This is the file format that will be used to save the file.
Tags :

mohd ahmed
Very Silly to have both constants with the same value
Why would MS put 2 different constants with the same value ?

This in fact confuses people more than help. Besides I find that when I use MS office to output documents from my applications, I have keep jumping back and forth.

This become impossible when I do not have any control over the type of MS office installed at the user end and do not have the ability to change the settings.


Tags :

PareshC
How to embed images in doc programatically?
Through C++ and WORD APIs, I am saving a html file as .doc. However, I could not save the images in the docment itself. Is there any way that I can tell Word programattically to save the images in the document itself ?
Tags :

Page view tracker