openxml How to add an image to a Word Document.


Inserting an image in a word document using OpenXml require two actions: add the image inside the openxml and refer to the image in your Document


if you only add the image to the openxml structure without refering it in the Word Document, the next time you "open / save" your document, the image file will be deleted.

Word delete all orphan references. So make sure to add the image in the Word Document otherwise you will need to redo all the steps.