I am looking for an example of how to insert images into a docx file. Can anyone point me in the right direction? I have already looked at the samples included in the source but couldnt find anything. Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am looking for an example of how to insert images into a docx file. Can anyone point me in the right direction? I have already looked at the samples included in the source but couldnt find anything. Thanks!
You may find it easier if you use Poi or docx4j, both of which build on top of the raw packaging stuff.
In the case of docx4j, see http://dev.plutext.org/trac/docx4j/browser/trunk/docx4j/src/main/java/org/docx4j/samples/AddImage.java
If you want to insert your image into the header/footer, there is a recent post to the forums showing you how to do that.
cheers .. Jason