View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Images, Mail Merge and Text Boxes

It helps to maintain the thread!

I have been testing this and provided the document is not a table, you can
even use your text box option to place a merged graphic over another graphic
that is pre-placed and set behind text. Your syntax for the INCLUDEPICTURE
field is correct.

The bit you appear to be missing is that you must merge to a new document
then update all the fields in that new documen to display the correct
imagest. You may find the update macro at
http://www.gmayor.com/installing_macro.htm useful!


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Robert_L_Ross wrote:
I've read up on some other suggestions and the replys either didn't
work or did not actually address the question I asked.

I'm trying to set up a Mail Merge document that can bring in a
graphic file located in a separate location. The graphic needs to be
'on top of' another graphic located in the Mail Merge document. The
only way I know how to do this is to insert a text box 'on top of'
the original background graphic, then put the merged image in the
text box. Problem is, this doesn't work for me...this is what I did:

Graphic files are .jpg's and saved to c:\graphics.
Mail Merge data is in an Excel spreadsheet.

I have a word doc...I've added a text box over a picture, then done
the following in the text box:
Ctrl+f9 (got the braces {})
typed:
INCLUDEPICTURE "C:\\GRAPHICS\\
Ctrl+f9 (got the 2nd set of braces{})
typed:
MERGEFIELD PIC
used the right arrow to get outside of the first set of braces
typed:
.jpg"

My final statement looks like this:
{INCLUDEPICTURE "C:\\GRAPHICS\\{MERGEFIELD PIC}.JPG"}

The Pic field on my Excel mail merge record file contains just the
file name I want to bring in - WomanDLPicLg or ManDLPicLg.

When I leave the field, I can see it when I toggle the field codes
on, but when they are off I don't see the field.

I save the document, then merge to a new document and get an error:
"Word found locked fields during the update. Word cannot update
locked fields."

Any idea what I'm doing wrong? Or better yet, is there some other
way to get the graphic to appear 'on top of' another graphic? (I was
told text boxes were unreliable, but the links given to make it work
had nothing to do with an alternative).

It should be noted that I tried this on another blank mail merge
document NOT using text boxes and it also does not bring in the
graphic, but does not display any locked field error.

Thanks guys (and ladies)!