Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    Spell Checking
    AutoCorrect
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    Services
    Events
    Commands
    Keyboard Shortcuts
    HTML Tag Support
   [Collapse]Examples
    [Expand]Files
    [Expand]Text
    [Expand]Formatting
    [Expand]Styles
    [Expand]Lists
    [Expand]Pictures
    [Expand]Text Boxes
    [Expand]Tables
    [Expand]Document Elements
    [Expand]Layout
    [Expand]Automation
    [Expand]Search and Replace
    [Expand]Mail Merge
    [Expand]Spell Check
    [Expand]Export-Import
    [Expand]Printing
    [Collapse]Protection
      How to: Grant Editing Permissions in a Document
      How to: Grant Editing Permissions in Code
    [Expand]User Interface Customization
    [Expand]Commands
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Grant Editing Permissions in a Document

The WinForms Rich Text Editor allows you to enable specific users or groups to edit certain document parts when the whole document is protected from modification

Follow the steps below to grant editing permissions:

  1. Select a range.
  2. On the Review ribbon tab, click the Range Editing Permissions button to invoke the Editing Permissions Dialog.

  3. In the Editing Permissions dialog, check users and groups who can edit the current range. These permissions are enforced when the document is protected. Click OK to apply changes and close the dialog window.

  4. On the Review ribbon tab, click the Protect Document button to enable document protection.

  5. In the invoked Document Protection dialog, specify the editing type in a protected document (read-only or comments only), provide and confirm a document protection password. Click OK to close the dialog.

    Note

    The password protection affects the document modification only and is required to unlock the document. The document is opened without prompting for a password.

  6. Save the document as a DOCX file.
  7. To enable editing the protected range when opening the document in a RichEditControl, set the AuthenticationOptions.UserName property to an allowed user specified in step 4, or the RangePermission.Group property to an allowed group.
  8. Load the document from step 7.
  9. Edit the range. Ranges without edit permission are read-only when document protection is enabled.
  10. Enable document modification by clicking Unprotect Document on the Review ribbon tab. It invokes a simple dialog that prompts for a password or unlocks the document if an empty password was set.

Is this topic helpful?​​​​​​​