Skip to main content

TdxRichEditControlBase.SaveDocument Method

Saves the opened document to a file.

Declaration

procedure SaveDocument; overload;

Remarks

A SaveDocument procedure call saves the opened document with the file name and format described in the Options.DocumentSaveOptions property.

You can link the SaveDocument and SaveDocumentAs commands to a UI element in your application to allow users to save documents.

Note

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

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

See Also