Thanks for the fast answer. I did what you said and it work perfectly except for one thing. I need to be able to change the text that will be displayed for my hyperlinks because all of my hyperlinks will have the same text but they will refer to different bookmarks in other Word files. Is this possible? Let me clarify my needs:
I have 4 word files (please forgive my english):
Capacities
Capacities description 1
Capacities description 2
Capacities description 3
Capacities description 4
From the Capacities Word document, I will have a couple of hyperlinks, having all the same text (i.e. "File"), that will refer to different locations (bookmarks) in the other Word files (Capacities description 1, 2, 3, 4, etc...)
Thanks again for your help and if I may say, your components are WONDERFUL (currently using XlsIO and DocIO). The learning curve is very easy and I was able to reproduce an existing document with an accuracy of almost 99%. Your components rocks!
Benoit Drapeau
>Hi Benoit,
Thanks for the update.
We do have support for inserting the Hyperlink field into the document by using the AppendField() method in version 6.1.0.34. It act as Hyperlink but it will not look like hyperlink. For this we need to format the paragraph manually. Please refer the below code snippet for inserting the Hyperlink field and Formatting the field.
[C#] //Create style for hyperlink formatting
IWParagraphStyle style = (IWParagraphStyle)document.AddParagraphStyle("UserStyle_Heading1");
style.CharacterFormat.UnderlineStyle = UnderlineStyle.Single;
style.CharacterFormat.TextColor = Color.Blue;
par.ApplyStyle(style.Name);
//Insert hyperlink
par.AppendField("
http://www.syncfusion.com", Syncfusion.DocIO.FieldType.FieldHyperlink);
par.AppendText("");
par.AppendField("
http://www.google.com", Syncfusion.DocIO.FieldType.FieldHyperlink);
Please download the sample from the below location:
http://websamples.syncfusion.com/samples/DocIO.Windows/F48167_1/main.htm Please let me know if you have any questions.
Best Regards,
Bhuvana