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

How to make DocIO to honor the setting in HTML tag 'style' (using AppendHTML)

Thread ID:





107913 Mar 22,2013 10:35 AM UTC Mar 25,2013 09:12 AM UTC ASP.NET Web Forms (Classic) 2
Tags: DocIO
Asked On March 22, 2013 10:35 AM UTC


I've string in HTML format such as

string s = "AAAA<img src='sampleimage.png' style='width: 100px; height: 50px' />"

And I Append this string to my paragraph object. It can generate doc file with image inside beautifully.

But it seem that the DocIO doesn't honor style=width/height properly.

I've search through and found a thread very close to my problem at

But the sample solution files provided had manually modified from "style tag" to tradition "width/height tag" like this 
string s = "AAAA<img src='sampleimage.png' width='100pt' height='50pt' />"

My problem is , my HTML data string is heavily rely on "Style tag" , plus they also using px not pt as the scale. 

How to make use of my original HTML data.

Best regards,
Shin K.

Replied On March 22, 2013 10:47 AM UTC

Extra information:
I'm using VS2010 on Win7 64 bits. 
With Syncfusion Studio (purchased version)

Siva Subramanian [Syncfusion]
Replied On March 25, 2013 09:12 AM UTC

Hi Shin,

Thank you for your using Syncfusion products.

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.




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