paxhuge.blogg.se

How to protect word document but allow editing
How to protect word document but allow editing











To grant editing rights to everyone, Everyone value of EditorGroup enumeration has been passed to the GroupEditor method.

  • Add editable range for the first paragraph using Add method of EditableRangeCollection class.
  • Create a new document and add a paragraph using the Paragraphs property of RangeBase class.
  • The whole document behaves as ReadOnly, except the editable ranges for defined users or groups.

    how to protect word document but allow editing

    To enable editable ranges, the IsActive property of EditProtection class should be set to true and the edit mode should be set to AllowOnlyReading. Set a password so that users who know the password can remove the protection and work on the documentĭoc.SetPassword( "abc123") ĭoc. = true Įditable ranges are specific regions in a read-only document, which can be edited or modified by users or groups with editing rights. Specify the protection mode for a documentĭoc. = EditProtectionMode.AllowOnl圜omments Set the password using SetPassword method of Password class which can be accessed using EditProtection property of DocumentProtection class.Set the IsActive property of EditProtection class to true.Set the enum value of EditProtectionMode to AllowOnl圜omments using the EditMode property of EditProtection class.Load a document using the Load method of GcWordDocument class.

    how to protect word document but allow editing

    Edit modesĪllows read-only access to the document except regions(ranges) with defined editor rights.Īllows only comments to be added to the document.Īllows content to be added to the document only through form fieldsĭoes not apply any protection to the document. You can also set a password using the Password property of EditProtection class which enables only the users with password to remove the editing restrictions from the document. The IsActive property of EditProtection class should be set to true in order to enforce the editing restrictions. You can apply certain edit modes to the document by using the EditProtectionMode enumeration.

    how to protect word document but allow editing

    GcWord supports editing restrictions to limit the user's ability to edit text in the document.

    how to protect word document but allow editing

    GcWordDocument doc = new GcWordDocument() ĭoc. = true













    How to protect word document but allow editing