Skip to main content
A newer version of this page is available. .

FileSaveAsCommand.execute(path) Method

Executes the FileSaveAsCommand command by applying the specified setting.

May result in taking no action if the command’s state does not allow command execution. Use the object’s getState method to check the command state.

Declaration

execute(
    path: string | RichEditFileInfo
): boolean

Parameters

Name Type
path string | RichEditFileInfo

Returns

Type Description
boolean

A Boolean value identifying whether method execution was successful or failed.

Remarks

The execute method checks the command state (obtained using the getState method) before executing, and decides whether the action can be performed.

Usage example:


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