We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Hyperlink does not update in output document using .NET


I have the text inside the table and when hover it the address is showing,
but the text not look like hyperlink so i am going to change the font color and try to underline the text.i have tried the below code not working properly.Can u pls do the needful.

Below is my code,

Aspose.Words.Document wdMainDoc = new Aspose.Words.Document(fileName.ToString());
DocumentBuilder builder = new DocumentBuilder(wdMainDoc);
foreach (Section section in wdMainDoc.Sections)
    foreach (Table table in section.Body.GetChildNodes(NodeType.Table, true))
        table.SetBorders(LineStyle.Single, 1.0, Color.Black);
        //table.Alignment = TableAlignment.Center;
        //builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
        if (table.Range.Text.Contains("HYPERLINK"))
            int range = 0;
            foreach (Field field in table.Range.Fields)
                range = range + 1;
                if (field.Type == Aspose.Words.Fields.FieldType.FieldHyperlink)
                    builder.Font.Color = Color.Blue;
                    builder.Font.Underline = Underline.Single;

Thanks & Regards,


Could you please ZIP and attach your input, problematic output and expected output documents here for testing? We will investigate the issue and provide you more information on it.