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

Missing HTML Hyperlinks when using AppendHTML...

Thread ID:





94382 May 10,2010 08:02 PM UTC May 12,2010 12:57 PM UTC ASP.NET Web Forms (Classic) 3
Tags: DocIO
Administrator [Syncfusion]
Asked On May 10, 2010 08:02 PM UTC


We're using Syncfusion Essentials 2010 Volume 2 and ASP.NET to create a Word document from a previously written HTML report.

We're having a problem with the rendering of our HTML when using the AppendHTML() method.

Our exact HTML we're passing to the method is:

"The Link will take you to a sample news page."

When the report is rendered it only prints the first word of the code "The" and leaves all of the rest off.

Below is the code for actually adding the HTML to the report.

// Pass the htmlToParse through the XHTML Compliance filter (TidyHTML)
string filteredHTML = TidyHTML(htmlToParse);

section.Body.IsValidXHTML(filteredHTML, XHTMLValidationType.None, out errorMessage);

if (errorMessage == "")
IWParagraphStyle HTMLStyle = document.AddParagraphStyle("HTMLStyle");
HTMLStyle.CharacterFormat.FontName = "Arial";
HTMLStyle.CharacterFormat.FontSize = 11;
HTMLStyle.ParagraphFormat.LeftIndent = indent;

catch (Exception ex)
AppendHTMLError(paragraph, errorStyle, defaultStyle, ex.Message);
IWTextRange text = paragraph.AppendText(UiUtils.StripHTML(filteredHTML));
retVal = false;

Any ideas as to what could be going wrong? I was thinking maybe the escape "\" character was causing the problem.

Thanks! Let me know if you need anything else.

- Daniel

Administrator [Syncfusion]
Replied On May 10, 2010 08:04 PM UTC

The above "Link" is actually html code. The text is:

"Link"'>http://www.cnn.com">Link" Just replace the "_" character with a whitespace.


Administrator [Syncfusion]
Replied On May 10, 2010 08:05 PM UTC


"Link<_/a>"'>http://www.cnn.com">Link<_/a>" Remove both "_" for whitespaces.

Thanks again,

Poornima R [Syncfusion]
Replied On May 12, 2010 12:57 PM UTC

Hi Daniel,

Thank you for your interest in Syncfusion products.

We are sorry for the long delay in responding. We were able to reproduce the mentioned issue.
We suspect this could be a defect. We have forwarded this issue to our development team for further analysis.

Could you please report this issue through Direct Trac Developer Support System
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take
the advantage of the expertise of a dedicated support engineer and a guaranteed response time and
we hope you will take advantage of this system as well. If you have already reported, please ignore this.

Please let me know if you have any queries.



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

or the page will be automatically redirected to 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