IdxRichEditDocument.SetEncryptionPassword(string) Method
Assigns an encryption password to the opened document.
Declaration
procedure SetEncryptionPassword(const APassword: string);
Parameters
Name | Type | Description |
---|---|---|
APassword | string | An encryption password. |
Remarks
Call this procedure with a non-empty string as the parameter to set a new encryption password. To remove an assigned password, call the SetEncryptionPassword procedure with an empty string.
Only Office OpenXML (DOCX) file format supports document file encryption. If a user saves the document in another format, the Rich Edit control displays the following dialog:
Note
Call a Rich Edit component’s HasEncryptionPassword function to identify if the document has an assigned encryption password.
Refer to the following topics for information on how to manage encrypted documents:
See Also