We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issues with Hyperlink

Thread ID:





99848 Jun 15,2011 03:20 PM UTC Jun 16,2011 01:53 PM UTC ASP.NET Web Forms (Classic) 1
Tags: DocIO
Namita Jain
Asked On June 15, 2011 03:20 PM UTC


I need to have some text in the format:
Email: abc@abc.com

Email -> simple text
abc@abc.com -> a hyper ink, clicking on the same would open a new mail message.

I am using the following piece of code.
IWParagraph para = footerTbl[0, 0].AddParagraph();
para.AppendText("Email: " + emailAddr).CharacterFormat.FontSize = 7;
IWField email = para.AppendField(emailAddr, FieldType.FieldHyperlink);
email.CharacterFormat.FontSize = 7;
Hyperlink emailLink = new Hyperlink(email as WField);
emailLink.Type = HyperlinkType.EMailLink;
emailLink.Uri = "mailto:" + emailAddr;

When i open the document, it throws an error when for styles, but clickeing on recover doc does have the required email in the document.

Another thing is - the same code creates a doc without any errors in a Windows App but not when it's a class library.

Can you please help.


Poornima R [Syncfusion]
Replied On June 16, 2011 01:53 PM UTC

Hi Namita,

Thank you for your interest in Syncfusion Products.

We have created a simple sample for “Inserting Hyperlink to the word document”. Please find the sample from the below link. Try running the sample and let us know if this helps you.


Please let us know if you have any questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon