Back to Devexpress

IdxRichEditDocument.SetEncryptionPassword(string) Method

vcl-dxrichedit-dot-nativeapi-dot-idxricheditdocument-dot-setencryptionpassword-x28-system-dot-string-x29.md

latest1.5 KB
Original Source

IdxRichEditDocument.SetEncryptionPassword(string) Method

Assigns an encryption password to the current document.

Declaration

delphi
procedure SetEncryptionPassword(const APassword: string);

Parameters

NameTypeDescription
APasswordstring

An encryption password.

If you pass an empty string as this parameter, the procedure removes the current encryption password.

|

Remarks

Call the SetEncryptionPassword procedure to add or remove password protection for the current document.

Limitations and Considerations

Only the Office OpenXML (DOCX) document format supports encryption. The following dialog appears in response to an attempt to export a document to any other format:

See Also

TdxRichEditControlSaveDocument

TdxRichEditControlSaveDocumentAs

IdxRichEditDocument.SaveDocument

IdxRichEditDocument Interface

IdxRichEditDocument Members

dxRichEdit.NativeApi Unit