Free Support Forum -

Inserting image from html

We have contacted you directly previously for support and am hoping you can assist in our current project.<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>

<o:p> </o:p>

Our goal is to dump html content into a word document preserving html formatting and images. I have managed to figure this out however when the document is saved to the users file system, the images appear broken. Is there a way to embed images using Mail Merge? Or is there another way to tackle this?<o:p></o:p>

<o:p> </o:p>

Thanks in advance,<o:p></o:p>


Dmitry will soon reply here to help, but please provide more details. What exactly is wrong with the image, attach your code and files to this post please to speed up support.

Hi Janet,

Thank you for considering Aspose.

Sure. Basically, you should use the MailMerge.MergeImageField event and pass the image file name, a stream containing the image, or a .NET Image object inside the event handler to the event arguments. To learn more, please refer to this topic in our Programmers Guide: