RichEditDocumentImportOptions.EncryptionPassword Property
Specifies a password used to unprotect a password-protected document during import.
Namespace: DevExpress.XtraRichEdit.Import
Assembly: DevExpress.RichEdit.v19.1.Core.dll
Declaration
Property Value
Type | Description |
---|---|
String | The target password. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to EncryptionPassword |
---|---|---|
WinForms Controls | SnapControlOptions |
|
RepositoryItemRichTextEdit |
|
|
RichEditControlOptions |
|
|
WPF Controls | RichEditControlOptions |
|
Office File API | RichEditControlOptionsBase |
|
Remarks
The EncryptionPassword property specifies a password to open a password-encrypted document.
If the EncryptionPassword property is not specified or returns an invalid password, the EncryptedFilePasswordRequested event fires.
The code sample below shows how to specify the password to load an encrypted file.
server.Options.Import.EncryptionPassword = "test";
server.LoadDocument("Documents//testEncrypted.docx");
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EncryptionPassword property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.