There is no need for me to do this; Nick already has.

He has added an AddPicture() method to the XWPFRun clas. All you need to do
is code the logic to open the file, iterate through the pargraphs, the runs
in each paragraph and check for the serach term. If you find the serach
term, remove it and then add the picture to the run.

Yours

Mark B

PS The modifed version of XWPFRun is only available in SVN as it has not, as
far as I know , been included into a nightly build. You will need to check
out a copy and build the library yourself. Look here
http://poi.apache.org/subversion.html and here
http://poi.apache.org/howtobuild.html.

--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/how-to-replace-text-with-image-in-word07-tp4332616p4338512.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to