View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Includepicture field in a mailmerge

If the field just has the name of the file, you will probably need to
supply the pathname. Use double backslashes or single forward slashes as
the path separator, e.g. something like

{ INCLUDEPICTURE "c:\\mypics\\{ MERGEFIELD photofilename }" }

substitute /your/ folder pathname and merge field name. All the {} have
to be the special "field code braces" that you can insert using ctrl-F9.

You will probably also find that you need to select the output document,
select it, and press F9 to update all the images.

If your field has the complete pathname, you /probably/ won't be able to use

{ INCLUDEPICTURE "{ MERGEFIELD photopathname }" }

as you might hope, unless the pathname has double backslashes or single
forward slashes as path separators.
You may also find inserting a \d switch helpful, e.g.

{ INCLUDEPICTURE "c:\\mypics\\{ MERGEFIELD photofilename }" \d }


Peter Jamieson

http://tips.pjmsn.me.uk

sot wrote:
I have an excel list that has a dexcription field, a price field and a photo
field. The photo field has the name of an image file in it.

I am using the Word Mailmerge Catalog command. I need to know the syntax of
the Includepicture with the mergefield command.

Many thanks