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?