Bug appears during deleting hyperlinks

Hi ,supporters,

A bug (not all the hyperlinks can be deleted) appears when performing the hyperlinks deleting operation based on VB.net 2008 and Aspose.Words.dll version 14.
What’s wrong? how to fix it?

Thanks!

Ducaisoft

@ducaisoft,

Please upgrade to the latest version of Aspose.Words for .NET i.e. 19.1 and then use the following code to delete all hyperlinks from Word document:

Document doc = new Document("E:\\temp\\input.docx");

foreach (Field field in doc.Range.Fields)
{
    if (field.Type == FieldType.FieldHyperlink)
    {
        field.Remove();
    }
}

doc.Save("E:\\temp\\19.1.docx"); 

Hope, this helps.