The following code example shows how to restrict editing to modify only form fields in a Word document. NoProtection: You can access/edit the Word document contents as normally. After enabling this flag, accept and reject changes options in Microsoft Word application are disabled.ĪllowOnlyReading: You can only view the content in the Word document. The following are the types of protection:ĪllowOnl圜omments: You can add/modify only the comments in the Word document.ĪllowOnlyFormFields: You can modify the form field values in the Word document.ĪllowOnlyRevisions: Allow only revisions to be made to existing content. You can restrict a Word document from editing either by providing a password or without password. You can download a complete working sample from GitHub. Step 2: In the drop-down menu, select 'Encrypt with Password' and then remove the password from the password field. Assembly using ( WordDocument document = new WordDocument ()) //Refer to the following link to save Word document in UWP platform // Step 1: Open the Microsoft Word document that you want to unprotect and then click on 'File' and select 'Protect Document' under the section marked 'Info'. "App" is the class of Portable project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |