Hi,
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.ClearBorders();
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.MoveTo(field.Start);
builder.Font.Color = Color.Blue;
builder.Font.Underline = Underline.Single;
}
}
}
}
}
Thanks & Regards,
RamyaMai.T.J