I have a template that I want to include images in. Each page will need to have a different image (a persons photo) included on it. I found this post on how to do this:
http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2011/03/28/replacing-a-picture-in-a-picture-content-control-in-an-open-xml-wordprocessingml-document.aspx
However, as noted by one of the commenters, I have the same problem that whatever image I use to replace the last content control is used for all of them. The thread died there, but I was wondering if anyone with a little more knowledge then me might be able to look at the code and let me know why (or suggest another method).
I have been stuck for a couple days scouring the internet and just can't get anything to work. Thanks in advance.
Tim
I have attached a sample solution. Please have a look.
You are great! I had all but given up on this post (and the idea of being able to do this) and your code does exactly what I needed it to do. Thank you so much.
The same prob I have also I was trying to put and place multiple images on the word doc but I can not find the solution till now. ;(
Hi ritaragev,
I have attached a solution in this thread itself. It replaces multiple images in word document. Please use that and see.