IdxRichEditDocument.SaveDocument(TStream,TdxRichEditDocumentFormat) Method
In This Article
Exports the document to a stream.
#Declaration
Delphi
procedure SaveDocument(AStream: TStream; AFormat: TdxRichEditDocumentFormat); overload;
#Parameters
Name | Type | Description |
---|---|---|
AStream | TStream | A target stream. |
AFormat | Tdx |
A document format. |
#Remarks
The SaveDocument procedure uses a Rich Edit component‘s Options.DocumentSaveOptions.DefaultFormat property value as the target document format if the AFormat parameter accepts the TdxRichEditDocumentFormat.Undefined value.
Note
The document server component has built-in support only for the plain text format. The Rich Edit control supports both TXT and RTF formats out-of-the-box. Refer to the following topics for information on how to enable optional document formats:
A Save
See Also