MS Office Forum / Word / Mailmerge and Fax / January 2006
Mail Merge in Graphics
|
|
Thread rating:  |
Gary Dotzlaw - 28 Oct 2005 20:24 GMT 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
Anne Troy - 28 Oct 2005 20:32 GMT The only thing I can offer is that Cindy Meister also has an article; I did not compare it with Graham's. http://homepage.swissonline.ch/cindymeister/MergFram.htm I do know that sometimes something misunderstood by one person can be understood by another... ************ Anne Troy www.OfficeArticles.com
>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 [quoted text clipped - 21 lines] > > Gary Gary Dotzlaw - 28 Oct 2005 21:53 GMT 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.
> The only thing I can offer is that Cindy Meister also has an article; I > did not compare it with Graham's. [quoted text clipped - 31 lines] >> >> Gary Anne Troy - 29 Oct 2005 00:41 GMT Okay, Gary. You sure the pictures aren't there? http://www.officearticles.com/word/missing_graphics_in_microsoft_word.htm
Are you perhaps seeing the fields instead of the pictures? Maybe you need to turn OFF viewing them? http://www.officearticles.com/word/view_field_codes_in_microsoft_word.htm
I can't imagine what else it would be, but I'm willing to take a look. ************ Anne Troy www.OfficeArticles.com
> Followed her sample to the letter and it does not work. Nothing appears, > not even an image placeholder. [quoted text clipped - 41 lines] >>> >>> Gary Doug Robbins - Word MVP - 28 Oct 2005 21:03 GMT 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.
 Signature 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
>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 [quoted text clipped - 21 lines] > > Gary Gary Dotzlaw - 28 Oct 2005 21:50 GMT 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
Anne Troy - 29 Oct 2005 01:05 GMT Okay, Gary. I did get it to work. My sample is at http://www.officearticles.com/downloads/mergepictest.zip Just copy the pictures folder to the C drive. It was NOT easy... :) so, I feel your pain. To make my test one work, save the MergePictures folder to the C drive. Open the main document, merge to a new document. In the new document hit Ctrl+A then F9 to update.
************ Anne Troy www.OfficeArticles.com
> Yes, there is a picture called 1.jpg in c:\images. > [quoted text clipped - 5 lines] > > Gary Gary Dotzlaw - 29 Oct 2005 01:32 GMT 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
Anne Troy - 29 Oct 2005 01:49 GMT 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
> Anne, > [quoted text clipped - 6 lines] > > Gary Gary Dotzlaw - 29 Oct 2005 02:07 GMT 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
Gary Dotzlaw - 29 Oct 2005 02:27 GMT Okay, I got it.
ActiveDocument.Fields.Update
Thanks for all your help.
Gary
Anne Troy - 29 Oct 2005 02:31 GMT Sure. If you're into VBA, check out the knowledgebase here for all kinds of goodies: www.vbaexpress.com/kb/kblist.php (Join their forum for free and you can search the kb, too.) ************ Anne Troy www.OfficeArticles.com
> Okay, I got it. > [quoted text clipped - 3 lines] > > Gary CSFlanagan - 26 Dec 2005 23:13 GMT 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
> Sure. If you're into VBA, check out the knowledgebase here for all kinds of > goodies: [quoted text clipped - 11 lines] > > > > Gary Graham Mayor - 27 Dec 2005 06:42 GMT No. But you can do so with Mail Merge - http://www.gmayor.com/mailmerge_from_outlook.htm The fields that are available with Insert Address are listed at http://www.gmayor.com/Macrobutton.htm
 Signature <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP
My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> On another subject... > Is it possible to insert the Name Field Suffix from Outlook using the [quoted text clipped - 21 lines] >>> >>> Gary Dixie - 31 Oct 2005 07:11 GMT 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
> Okay, I got it. > [quoted text clipped - 3 lines] > > Gary Doug Robbins - Word MVP - 31 Oct 2005 08:42 GMT 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.
 Signature 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
> 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? [quoted text clipped - 8 lines] >> >> Gary Snowman53 - 20 Jan 2006 01:21 GMT 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.
> Okay, Gary. I did get it to work. My sample is at > http://www.officearticles.com/downloads/mergepictest.zip [quoted text clipped - 17 lines] > > > > Gary Graham Mayor - 29 Oct 2005 07:00 GMT 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 :(
 Signature <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP
My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Yes, there is a picture called 1.jpg in c:\images. > [quoted text clipped - 5 lines] > > Gary Anne Troy - 29 Oct 2005 21:48 GMT Very weird, Graham. I couldn't get it to work either. I looked and looked and looked again and again at the syntax... ************ Anne Troy www.OfficeArticles.com
> The images on the web page were screen shots from Word with this working - > so it clearly works as shown. [quoted text clipped - 10 lines] >> >> Gary Dixie - 31 Oct 2005 07:18 GMT 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
> Very weird, Graham. I couldn't get it to work either. I looked and looked > and looked again and again at the syntax... [quoted text clipped - 16 lines] >>> >>> Gary
|
|
|