The following sample project shows how to use a Word Processing File API to load and save password-encrypted files. The loaded file is decrypted using the EncryptionSettings properties. When a user re-opens the file with a new password, the RichEditDocumentServer.EncryptedFilePasswordRequested and RichEditDocumentServer.EncryptedFilePasswordCheckFailed events occur. If the user cancels the operation or exceeds the number of attempts to enter the password, RichEditDocumentServer shows an exception message.
Important
The Universal Subscription or an additional Office File API Subscription is required to use this example in production code. For pricing information, please refer to the DevExpress Subscription page.
- Program.cs (VB: Program.vb)
(you will be redirected to DevExpress.com to submit your response)