SaveAsEx method

Microsoft Visio Developer Reference

SaveAsEx method

       

Saves a document with a file name using extra information passed in an argument.

Version added

4.0

Syntax

object.SaveAsEx fileName, saveFlags

object

Required. An expression that returns a Document object.

fileName

Required String. The file name for the document.

saveFlags

Required Integer. How to save the file.

Remarks

The SaveAsEx method is identical to the SaveAs method, except that it provides an extra argument in which the caller can specify how the document is to be saved.

The saveFlags argument should be a combination of the following values.

Constant

Value

Description

visSaveAsRO

&H1

The document is saved as read-only.

visSaveAsWS

&H2

The current workspace is saved with the file.

visSaveAsListInMRU

&H4

The document is included in the Most Recently Used (MRU) list. By default, Save and SaveAs do not place the document into the MRU list.