Export Method

Exports the document to one of the file formats, supported by ConceptDraw.

Applies to: Document object

Syntax

[[Let] booleanRet =] object.Export ( fileName, formatType, [showSaveDlg], [showExportSetupDlg] )

The Export method syntax has these parts:

Part Description
object Required. An expression, that returns an instance of the Document object.
fileName Required. An expression that returns a String value. Represents the filename and path (full or relative) of the file, to which the document is being exported.
formatType Required. An expression that returns a Long value. Specifies the format of the file, the which the document is being exported.
showSaveDlg Optional. An expression that returns a Boolean value. A flag that specifies whether the file save dialog must be displayed. The default value is False.
showExportSetupDlg Optional. An expression that returns a Boolean value. A flag that specifies whether to display the dialog with settings for the appropriate export format. The default value is False.
booleanRet Optional. A Boolean type variable.

Remarks

If the file was exported successfully, the Export method returns True, otherwise it returns False.

The file is not exported if the provided filename (fileName) is not valid for the platform, on which ConceptDraw is running, or if the specified file format (formatType) is not supported by ConceptDraw. The list of supported file formats and corresponding ConceptDraw Basic constants can be found here.

An inverse method to Export is the Import method, which imports a file of one of the formats, supported by ConceptDraw.

 

See Also

Import/Export constants, Import method