SaveFormat Property
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

_Document.SaveFormat Property

Returns an Integer representing the file format of the specified document or file converter.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

int SaveFormat { get; }

Property Value

Type: System.Int32

The file format is a unique number that specifies an external file converter or a WdSaveFormat constant.

Use the value of the SaveFormat property for the FileFormat argument of the SaveAs method to save a document in a file format for which there isn't a corresponding WdSaveFormat constant.

© 2015 Microsoft