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. Image for the cookie policy date

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

Hi, 

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
http://www.syncfusion.com/support/forums/docio-aspnet/106177/Export-Image-from-HTML-to-Word

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.

2 Replies

WI Wind March 22, 2013 10:47 AM UTC

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


SS Siva Subramanian Syncfusion Team 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.

Regards,

Sivasubramanian


Loader.
Live Chat Icon For mobile
Up arrow icon