IncludePicture syntax for URL

B

Binchar

I need to do a mail merge that includes pictures that are on the web. There is a mail merge field in the data source that has the url to the picture. I can't seem to stumble on the right syntax to get mail merge to insert the URL from the data source into the IncludePicture. Can I do this? If so, would someone mind posting the syntax

Thanks

LAR
 
G

Graham Mayor

Let's assume that you have the urls in the data file in the format:

http://www.gmayor.com/NewHouse/112-1225_IMG.jpg

in a field called Image, then to insert the image you need a field
construction

{IncludePicture {Mergefield Image}}

Merge to a new document, select all (CTRL+A) then F9 to update and display
the pictures. I would imagine that you would need a reliable fast
interconnection for this to work well. It would work faster if all the
required images were cached on your hard drive and you work off line.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
B

Binchar

Graham,

Thanks for the quick response. Is there a syntax for "linking" to the picture rather than embedding it? The pictures I'm trying to refer to are not on a local drive, but on an internet server. Second, how does the substitution take place on a mail merge with no "chevron" fields?

Thanks for your help.

Larry
 
G

Graham Mayor

The 'chevron' fields are merely internal indicators used by Word's mail
merge. If you toggle them, they should display as {Mergefield fieldname}.
You can enter mergefields from the keyboard using CTRL+F9 to set the field
boundaries {}.

Use a \d switch on the IncludePicture field to link rather than store in the
file.
eg
{IncludePicture {Mergefield Image}\d}

If the pictures are not available locally, the merge will simply take
longer, but the procedure is as originally stated.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top