7 out of 7 rated this helpful - Rate this topic

WdSaveFormat Enumeration

Office 2007
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.


Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Save Format Template
Hi, Yasir, $0you can use wdFormatTemplate for the purpose.$0 $0hope this helps.$0
What is the Value to SaveAs in .dotx template format
I want to save .docx into .dotx, but could not found the Value. Can anybody tell me the value for saving file in .dotx template format? Thanks
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 ?
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.


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.
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.