Share via


DefaultSaveFormat Property [Visio 2003 SDK Documentation]

Determines the format for saving Microsoft Office Visio files that appears by default in the Save as type box in the Save as dialog box (File menu) in the Visio user interface.

retVal = object.DefaultSaveFormat

object.DefaultSaveFormat = newVal

retVal    VisDefaultSaveFormats. Returns the current format in which Visio files are saved by default.

object    Required. An expression that returns an ApplicationSettings object.

newVal    Required VisDefaultSaveFormats. Sets the default format in which Visio files are saved.

Version added

2003

Remarks

Setting the DefaultSaveFormat property is equivalent to setting the Save Visio files as option on the Save tab in the Options dialog box (Tools menu).

Note  The DefaultSaveFormat property setting has no effect on the file type in which Visio files are saved by the Save or SaveAs methods of the Document object. To control the file type in which a document is saved programatically, use the Version property of the Document object.

The following VisDefaultSaveFormats constants, which are declared in the Visio type libary, show the possible values for the DefaultSaveFormat property.

Constant Value Description

visDefaultSaveCurrentBinary

0

Binary format for current version of Visio.

visDefaultSaveCurrentXML

2

XML format for current version of Visio.

visDefaultSavePreviousBinary

1

Binary format for previous version of Visio.

SaulC: Need to add Version property and Document object to See also list.

Applies to | ApplicationSettings object

See Also | Document object | Save method | SaveAs method | Version property