Dear Aspose support,
under certain circumstances (and it is unclear when these circumstances happen) images embedded in HTML are not properly sized when HTML is inserted into a Word document via LINQ reporting engine.
This is a simplified example: HtmlInsertTest.zip (39.1 KB)
In the archive there is the word template (just a single tag for inserting html) and the source html (embedded inside an xml container).
The HTML contains a single image: in the output such image is inserted into Word at 200% scaling, but I see no reason why.
Also, it seems that any styling on the image is ignored; in the provided example, the style is in the HTML’s HEAD section as an embedded CSS but also other methods do not work (e.g. providing custom style attribute to the given image tag).
So, basically, the request for support is about these two points:
- why is the image inserted at 200% scaling?
- why any provided (embedded) style is ignored?
Thanks in advance for your support,
Any workaround is also appreciated,
Kind Regards
FV