Save Method (Document object)

Saves the document.

Applies to: Document object

Syntax

[[Let] booleanRet =] object.Save ( saveFlags )

The Save method syntax has these parts:

Part Description
object Required. An expression that returns a Document object.
saveFlags Optional. An expression that returns a Long value. Flags of the document saving options.
booleanRet Optional. A Boolean type variable.

Remarks

The method attempts to save the document under the default filename (the FullName property) and in the format in which it was saved earlier. If the document hasn't been yet saved, the name of the file (the Name property) is made up automatically of the document title (the Title property) and the standard extension for ConceptDraw documents (.cdd for a regular document, and .cdx for documents in the ConceptDraw XML format), and then the document is saved in the current folder of the application.

The option flags saveFlags can take the following value:

Constant Value Description
cdSaveWithWS &H1

Save the workspace information together with the document.

If the document has been saved successfully, the Save method returns True. Otherwise, the method returns False. To save the document with the specified filename and parameters, use the SaveAs method.

 

See Also

FullName property, Name property, Title property, OpenDoc method, SaveAs method