WdSaveFormat Enumeration
Office 2007
| Word Developer Reference |
Version Information
Version Added:
| Name | Value | Description |
|---|---|---|
| wdFormatDocument | 0 | Microsoft Office Word format. |
| wdFormatDOSText | 4 | Microsoft DOS text format. |
| wdFormatDOSTextLineBreaks | 5 | Microsoft DOS text with line breaks preserved. |
| wdFormatEncodedText | 7 | Encoded text format. |
| wdFormatFilteredHTML | 10 | Filtered HTML format. |
| wdFormatHTML | 8 | Standard HTML format. |
| wdFormatRTF | 6 | Rich text format (RTF). |
| wdFormatTemplate | 1 | Word template format. |
| wdFormatText | 2 | Microsoft Windows text format. |
| wdFormatTextLineBreaks | 3 | Windows text format with line breaks preserved. |
| wdFormatUnicodeText | 7 | Unicode text format. |
| wdFormatWebArchive | 9 | Web archive format. |
| wdFormatXML | 11 | Extensible Markup Language (XML) format. |
| wdFormatDocument97 | 0 | Microsoft Word 97 document format. |
| wdFormatDocumentDefault | 16 | Word default document file format. For Microsoft Office Word 2007, this is the DOCX format. |
| wdFormatPDF | 17 | PDF format. |
| wdFormatTemplate97 | 1 | Word 97 template format. |
| wdFormatXMLDocument | 12 | XML document format. |
| wdFormatXMLDocumentMacroEnabled | 13 | XML document format with macros enabled. |
| wdFormatXMLTemplate | 14 | XML template format. |
| wdFormatXMLTemplateMacroEnabled | 15 | XML template format with macros enabled. |
| wdFormatXPS | 18 | XPS format. |
Save Format Template
Hi, Yasir,
$0you can use wdFormatTemplate for the purpose.$0
$0hope this helps.$0
- 10/9/2011
- SunilK
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
- 10/7/2011
- Malik Yasir
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.
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.
- 7/8/2009
- mohd ahmed
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.
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.
- 7/3/2009
- Doc Tari
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.
- 1/6/2009
- Corey_33321