Mail Merge in Graphics

G

Gary Dotzlaw

I am looking for some assistance. I have been trying to do a simple
"InsertPicture" with a mail merge using Word 2003 SP2 (also tried with Word
2000). In neither instance can I get it to work; no image appears in the
document even after ALT-F9, merging to a new document, or in Print Preview.


I studied extensively the example as posted here:
http://www.gmayor.com/mail_merge_graphics.htm
without any success.

I have attempted the most basic of examples, using a new Word document with
only the code:
{ IncludePicture "C:\\Images\\1.jpg" }
and still can not even get this to work.

Ideally I need to have the image and path coming from a nested field like
this:
{ IncludePicture "{MERGEFIELD "FullName"}" }
using a simple tab-delimited text data source file.

Can anyone actually get this to work? If so, post the document so I can see
how it works.

Thanks,

Gary
 
D

Doug Robbins - Word MVP

Are you using Ctrl+F9 to insert the field delimiters { }?

If you are, and there is a picture with the name 1.jpg in the c:\images
folder, then that should result in a picture being shown in the document.

What actually do you see in the document in place of the picture? If it is
an empty rectangle, then you need to select Options from the Tools menu and
on the View tab, uncheck the Picture Placeholders item.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
G

Gary Dotzlaw

Yes, there is a picture called 1.jpg in c:\images.

No, nothing shows, not even a picture placeholder.

I appreciate the answers, but has anyone actually tried this? It does not
appear to work as documented. I am preparing to open a tech incident with
Microsoft because I need this solved.

Gary
 
G

Gary Dotzlaw

Followed her sample to the letter and it does not work. Nothing appears, not
even an image placeholder.

Have you tried this and been able to get it to work?

Her sample is identical to Grahams. Not sure what is wrong but this does not
work with either Word 2000 on Win 2000, or Word 2003 on Win 2003.

Help.
 
G

Gary Dotzlaw

Anne,

Thank you so much. That worked.

I'm surprised at how different it is from all the examples I see everywhere.
I never would have guessed to try the \* MERGEFORMAT before the path. Not
sure how everyone got this wrong (including MSDN) and you figured it out.

Gary
 
A

Anne Troy

Gary: I used the Insert-->Field menus to insert the IncludePicture field and
that showed up. I am not positive it had anything to do with it, but it
worked, so... :) Merge fields have always been difficult for me but because
of people like you, I stick with it! I am learning, ever so slowly...
************
Anne Troy
www.OfficeArticles.com
 
G

Gary Dotzlaw

I should have tried the Insert Field menu. I was too focused on following
the Microsoft and technical examples on the web.

One last thing, if you know VBA.

What line of code is equivalent to the refresh (F9)?

I understand how to handle the rest, having written VBA before.

Thanks,

Gary
 
G

Graham Mayor

The images on the web page were screen shots from Word with this working -
so it clearly works as shown.
Why it is prevented from doing so on your hardware is a different issue
entirely :(

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
D

Dixie

Gary, where do you put that code? I am doing automation from Access. Would
I put it there, or does it have to be in each word template?

dixie
 
D

Dixie

The answer I think is that in Word 2000 SR-1 and Word 2002 SP2 Microsoft
changed the behaviour of several things like INCLUDEPICTURE and INCLUDETEXT
possibly to patch a security issue. They describe the changes and possible
registry patches at the following page.

http://support.microsoft.com/?kbid=330079

I have just run into the same problem and am still nutting it through - I'd
love to be able to achieve it without a registry change at each site that
does the mailmerges.

dixie
 
D

Doug Robbins - Word MVP

I assume that this is related to your later post, though that mentioned
nothing about automation from Access.

I gather that what you are doing is creating letters with data from Access
that you want to appear with a letter head that contains a graphic. You
should design the Template with the graphic in the letter head and the best
way to put it there is to use the Picture item on the Insert menu.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
C

CSFlanagan

On another subject...
Is it possible to insert the Name Field Suffix from Outlook using the Insert
Address button? I can get the Title, Surname, Given name, address, phone,
fax, etc. (For example, Mr. William J. Peters, Sr. is not the same as Mr.
William J. Peters, III). I also have clients who are P.E. (Professional
Engineers) and AIA (architects) and I'd like to include these suffixes in
correspondences.
Thanks,
Scott
 
S

Snowman53

Anne,

I downloaded your example & it came closer to working than anything else I
tried. It actually showed be a graphic - however it shows the first graphic
for every record.

I merged to a new document, did Ctrl+A & F9, but still shows the "1.jpg"
image on every page.

This shouldn't be so hard!

Thanks for your help.
 

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