With BaseExtensions, we are able to control editing options for a document.
CMD
<Cmd case="BaseExtensions:protect" ProtectionType="xx"/>
Parameters
ProtectionType
The protection type that should be set. This needs to be one of following types (NOTE types are case sensitive):wdAllowOnlyComments - Allow only comments to be added to the document.wdAllowOnlyFormFields - Allow content to be added to the document only through form fields.wdAllowOnlyReading - Allow read-only access to the document.wdAllowOnlyRevisions - Allow only revisions to be made to existing content.wdNoProtection - Do not apply protection to the document. (this does NOT unprotect)
These values are taken from this page.
NOTE: if one protection type has been set and you want to set another you need to unprotect before this is possible.
Unlock document
CMD
<Cmd case="BaseExtensions:unprotect"/>
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article