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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Missing text using XHTML compliant tags...

Thread ID:

Created:

Updated:

Platform:

Replies:

94243 Apr 30,2010 03:09 PM UTC May 4,2010 10:02 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: DocIO
Administrator [Syncfusion]
Asked On April 30, 2010 03:09 PM UTC

Hello,

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 faculty will meet later this year to develop an method to improve and assess writing in the program!
"

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 == "")
{
try
{
IWParagraphStyle HTMLStyle = document.AddParagraphStyle("HTMLStyle");
HTMLStyle.CharacterFormat.FontName = "Arial";
HTMLStyle.CharacterFormat.FontSize = 11;
HTMLStyle.ParagraphFormat.LeftIndent = indent;

paragraph.AppendHTML(filteredHTML);
paragraph.ApplyStyle(HTMLStyle.Name);
}
catch (Exception ex)
{
AppendHTMLError(paragraph, errorStyle, defaultStyle, ex.Message);
paragraph.AppendBreak(BreakType.LineBreak);
IWTextRange text = paragraph.AppendText(UiUtils.StripHTML(filteredHTML));
text.ApplyCharacterFormat(defaultStyle);
retVal = false;
}
}

Any ideas as to what could be going wrong? I've tried using single tags thinking maybe it was having trouble with nested tags but it seems that applying any single tag from the following: , or causes the rendering of the text to stop after the tag is hit.

Thanks! Let me know if you need anything else.

- Daniel

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

Hi Daniel,

Thank you for your interest in Syncfusion products.

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.

Regards,
Poornima

Administrator [Syncfusion]
Replied On May 3, 2010 02:00 PM UTC

I have added a support ticket. Thanks for the quick reply.

-Daniel

Poornima R [Syncfusion]
Replied On May 4, 2010 10:02 AM UTC

Hi Daniel,

Thank you for your update.

Let us know if you have any other further queries.

Regards,
Poornima

CONFIRMATION

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.

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

;