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

TdxRichEditControlBase.SaveDocument(TStream,TdxRichEditDocumentFormat) Method

Saves the opened document to a stream.

#Declaration

Delphi
procedure SaveDocument(AStream: TStream; ADocumentFormat: TdxRichEditDocumentFormat); overload;

#Parameters

Name Type Description
AStream TStream

A target stream.

ADocumentFormat TdxRichEditDocumentFormat

A document format.

#Remarks

If the SaveDocument procedure accepts the TdxRichEditDocumentFormat.Undefined value as the ADocumentFormat parameter, the Options.DocumentSaveOptions.DefaultFormat property defines the target document format.

Note

This procedure variant does not reset the DocumentModelModified property to False.

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