Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxRichEditCustomDocumentServer.SaveDocument(string) Method

Saves the opened document to a file.

#Declaration

Delphi
procedure SaveDocument(const AFileName: string); overload;

#Parameters

Name Type Description
AFileName string

An absolute or relative path to a target file.

#Remarks

If the specified file name does not include an extension, the Options.DocumentSaveOptions.DefaultFormat or Options.DocumentSaveOptions.CurrentFormat property value defines the target document format for a new or existing file, respectively.

Note

The document server component has built-in support only for the plain text format to avoid excessive dependencies. Refer to the following topic for information on how to enable RTF, DOC, DOCX, and HTML formats: Document Server: Document Management.

A SaveDocument procedure call cannot export a document to the target format if it is disabled.

See Also