The document protection sets rules on the editing of particular documents. Users cannot modify a protected document. However, this document type may include range permissions that authorize a user (or a user group) to edit a specific text area. You can apply protection and range permissions to a document using Microsoft Word or Rich Edit Document Server.
Users can use the ASPxRichEdit to open and view protected documents. The control allows you to identify the current user to enable ranges permitted for the specified user or group. Editable ranges can be enclosed in brackets and highlighted, as illustrated in the following image:
Users and groups range permissions are not compatible with Microsoft Word's Editing Restrictions. Only the predefined groups are saved in RTF format; group names are not saved in DOC format.
A protected document may include range permissions granted to a unique user or a user group. These permissions require a user's credentials to authorize editing of ranges. The ASPxRichEdit control includes the ASPxRichEditSettings.Authentication property that allows you to identify a current user's credentials and enable separate text areas (or entire document) for editing. This property provides access to the ASPxRichEditAuthenticationSettings object containing the following user's credentials:
The control authorizes editing of range if one of the user's credentials meets the range permission's requirements.
Note, that if a protected document includes a range permitted for a user group named Everyone, every user can edit this text area even if the ASPxRichEditSettings.Authentication settings are not defined.
The code snippet below demonstrates an ASPxRichEdit class instance with the specified authentication settings: