Skip to main content

FileSaveAsCommand.execute(path) Method

Executes the FileSaveAsCommand command with the specified parameter.

Declaration

execute(
    path: string | RichEditFileInfo
): boolean

Parameters

Name Type Description
path string | RichEditFileInfo

An object that contains the settings of the saved file.

Returns

Type Description
boolean

true, if the command has been successfully executed; false if the command execution has failed.

Remarks

Usage example:

var fileSettings = {
    documentFormat: ASPx.DocumentFormat.Doc,
    fileName: 'document1',
    folderPath: '/'
}
richEdit.commands.fileSaveAs.execute(fileSettings)
See Also