View Single Post
  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Use mail merge to insert image using path in datasource

Hi JeffC,

Yes, you can do this without modifying the data path. You can use a field coded as:
{IF {INCLUDEPICTURE "{IF TRUE «Image»}"} {INCLUDEPICTURE "{IF TRUE «Image»}"}}
where 'Image' is the field name for your image data.

Unlike the method Doug suggests, the above approach avoids the need to refresh the links after the merge, plus it unlinks the images
from the source files, which you'd need to do anyway before sending the merged output to anyone else.

Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste
them from this message. Likwise, you can't type the chevrons (ie '« »') - they're part of the actual mergefields, which you can
insert from the mailmerge toolbar.

--
Cheers
macropod
[Microsoft MVP - Word]


"JeffC" wrote in message ...
Can you use the mail merge function to insert an image into the word
document? In other words, if my data source has
C:\Administrator\Desktop\image.jpg in one of the fields, is there a way to
force word to bring in the image?