permStart and permEnd manipulation

Hi

I’m looking for a way to manipulate the tags permStart and permEnd, i need to remove exceptions in certain points of our application.

Thanks for your attention

Hi Carlos,

Thanks for your inquiry. Please attach your input Word document here for testing. We will investigate the structure of your document and provide you more information.

Best regards,

I’m looking to remove permStart y permEnd in the document …

Thanks for your attention

Hi Carlos,

Thanks for your inquiry. A complete editable range in a Word document consists of a EditableRangeStart and a matching EditableRangeEnd with the same Id. You can remove these markers by using the following code snippet:

Document doc = new Document(MyDir + @"2014018749-012-000.docx");
doc.GetChildNodes(NodeType.EditableRangeStart, true).Clear();
doc.GetChildNodes(NodeType.EditableRangeEnd, true).Clear();
doc.Save(MyDir + @"out.docx");

I hope, this helps.

Best regards,