The SaveAs method saves the document to disk. Returns a Boolean.
Syntax
object.SaveAs( FileName, Options, FileFormat )
Parameter |
Type |
Description |
FileName |
String |
optional, default="", path and file name including the extension, if nothing is specified the FullName property is used |
Options |
String |
optional, default="" , used only with the worksheet document. If nothing is specified the last option used to save the worksheet is used again. Golden Software Data [.DAT] and Microsoft Excel [.XLS] file formats contain options, see below. |
FileFormat |
optional, default=mvSaveFormatUnknown |
Remarks
See Golden Software Data Export Automation Options and Microsoft Excel Export Automation Options for information on worksheet export Options.
Example
This example demonstrates how to save a map document as TEST.GSM.
Doc.SaveAs(mvApp.ApplicationFolder + "\Samples\test.gsm")
Used by: Document object