Free Support Forum -

Code Sample to Insert Images into a Word Document

I am attempting to insert a “Watermark” image inside a word document. Ideally this is a faded background image on the word doc. Does anyone have a code sample to insert an image into a word document? Do you have to use a merge field to insert images?


We are close but not right there yet.

At the moment Aspose.Word can only insert images into merge fields and these images will be inline with text.

To achieve background effect you probably want to insert image into header or footer (this is possible because merge field can be inserted there), the only feature missing is to be able to specify image layout to be behind text, not inline.

I would suggest you evaluate Aspose.Word for your solution and exclude watermark for now, we will add the ability to specify image layout sometime in April.

Full code samle for inserting images will be available in Aspose.Word 1.3 at the end of March. In the meantime you can have a look here