Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Word 2007
Enumerations
 WdSaveFormat Enumeration
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 What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Two zero values      Corey_33321   |   Edit   |   Show History

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 What's this?: as (x) save (x) version (x) Add a tag
Flag as ContentBug
wdFormatDocumentDefault      Doc Tari   |   Edit   |   Show History
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 What's this?: Add a tag
Flag as ContentBug
Very Silly to have both constants with the same value      mohd ahmed   |   Edit   |   Show History
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 What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker