Convert HTML with Image to word

HELLO,

I tried to convert the following HTML to Word file

<img alt="" style="width: 600px; height: 450px;" src="/DFSA_REPORT_EXPORT/Editor/Images/Picture1.jpg" />

But the exported word file haven’t a width or height for the Image

It is only working when be like following

<img width="701" height="523" alt="" src="/DFSA_REPORT_EXPORT/Editor/Images/Picture1.jpg" /> 

I am using the following code

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
string html = GetReportHTML();
builder.InsertHtml(html);
// Send the document to the browser.
doc.Save("Report_Name.doc", SaveFormat.Doc, SaveType.OpenInApplication, Response);

How could I make Document object understand the image style instead of width/height attributes?

Hi

Thanks for your request. Unfortunately, ‘style’ attribute of ‘img’ tag is not yet supported by Aspose.Words. Your request has been linked to the appropriate issue. You will be notified as soon as it is supported.
Best regards.

The issues you have found earlier (filed as WORDSNET-2020) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(20)