Hi Aspose team,
I am replacing hyperlink in Word document using simple code like in attached
public void UpdateHyperlink()
Aspose.Words.Document doc = new Aspose.Words.Document("input.dotx");
foreach(Field fld in doc.Range.Fields)
hyperlink = (FieldHyperlink)fld;
hyperlink.Address = NewUrl;
hyperlink.Result = NewName;
Unfortunately after change is done hyperlink formatting is changed:
- link is not anymore blu
- font size in original file was TimeNewRoman 10 and in changed document is TimeNewRoman12
Please find attached sample project. Just run it and compare input.dotx and output.dotx files.
P.S. Latest version of Aspose components is used.
Thanks for help,