I have 2 docx document, these document are read-only at document level. But edit option for few paragraphs in these document are enabled by using permStart and permEnd tags.
I have to merge these 2 document and make the new document editable. I'm using PowerTools DocumentBuilder to merge these 2 docx. The final docx is editable, but all the paragraphs are highlighted with gray background due to the presence of permStart and permEnd tags.
I'd like to know how we can remove these permStart and permEnd tags. I tried the following code but not working.
wordD.MainDocumentPart.Document.Body.RemoveAllChildren< PermStart>(); wordD.MainDocumentPart.Document.Body.RemoveAllChildren< PermEnd>();
I'm using OpenXML SDK2.0, VS2010, .NET 4.0 & Powertools Document Builder. Any help would be great.
Thank you!