1 out of 5 rated this helpful - Rate this topic

WdSaveFormat Enumeration 

Specifies the format to use when saving a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Dim wdSaveFormat1 As WdSaveFormat = WdSaveFormat.wdFormatDocument

public enum WdSaveFormat
public enum WdSaveFormat
public enum WdSaveFormat
Member name Description
wdFormatDocument Microsoft Word format.
wdFormatDOSText Microsoft DOS text format.
wdFormatDOSTextLineBreaks Microsoft DOS text with line breaks preserved.
wdFormatEncodedText Encoded text format.
wdFormatFilteredHTML Filtered HTML format.
wdFormatHTML Standard HTML format.
wdFormatRTF Rich text format (RTF).
wdFormatTemplate Microsoft Word template format.
wdFormatText Microsoft Windows text format.
wdFormatTextLineBreaks Microsoft Windows text format with line breaks preserved.
wdFormatUnicodeText Unicode text format.
wdFormatWebArchive Web archive format.
wdFormatXML Extensible Markup Language (XML) format.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Saving .docx in Word 2007
Saving as .docx in Word 2007, you might expect that wdFormatDocument is right.  In my experience, however, you get an unopenable file.  What you want is wdFormatXMLDocument.