Skip to main content
cut

RichEditCommands.fileSaveAs Property

Gets a command to save a document in a file with the specified path.

Declaration

get fileSaveAs(): FileSaveAsCommand

Property Value

Type Description
FileSaveAsCommand

An object that provides methods that execute the command and check its state.

Remarks

Call the execute(path) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.

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

Saving a document to the server is enabled only when the ASPxRichEdit.WorkDirectory property is defined.

Refer to the following section for more information: Client Commands.

See Also