TdxRichEditCustomDocumentServer.SaveDocument(string,TdxRichEditDocumentFormat) Method
In This Article
Saves the opened document to a file.
#Declaration
Delphi
procedure SaveDocument(const AFileName: string; ADocumentFormat: TdxRichEditDocumentFormat); overload;
#Parameters
Name | Type | Description |
---|---|---|
AFile |
string | An absolute or relative path to a target file. |
ADocument |
Tdx |
A document format. |
#Remarks
If the SaveDocument procedure accepts the TdxRichEditDocumentFormat.Undefined value as the ADocumentFormat parameter, the Options.DocumentSaveOptions.DefaultFormat or Options.DocumentSaveOptions.CurrentFormat property 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 Save
See Also