Hi,
I am doing a mail merge with three pictures conditionally included in the
document. Example code for first picture below:
{ IF { MERGEFIELD photo_1_Name } <> "" { INCLUDEPICTURE "E:\\path\\{
MERGEFIELD "Photo_1_Name" }.jpg" ""}
-aside: is there a simple way to copy and past fields into this dialogue
box? I had to type that all out :-(
The path is correct, as it can find the images, it just isn't processing the
links properly.
The code inside a table, to assist with layout. Taking it outside the table
doesn't help.
This was merging fine, with the INCLUDE picture field still a field in the
results. However, when I merge to new document now, I just get images from
whatever the last selected record was when I updated field codes in the
master document.
I already have the |Tools|Options|General|Web Options|Save fields as
results| turned off, but it hasn't helped.
Can you shed any light? Thanks in advance,
Glen
Glen - 13 Jul 2007 03:50 GMT
Found the answer at this post.
It appears the results of if statements get hard coded and the Include
picture field falls over, when the merge is done. The solution is to nest
the if statement inside the include picture field, not the other way around.
Use a 1x1 image for the includepicture where the if statement returns a
false.
http://www.microsoft.com/office/community/en-us/default.mspx?query=conditional+p
icture&dg=microsoft.public.word.mailmerge.fields&cat=en-us-office-word&lang=en&c
r=US&pt=617c4d62-4061-4107-8d46-2a22fc6fa202&catlist=&dglist=&ptlist=&exp=&sloc=
en-us
> Hi,
>
[quoted text clipped - 24 lines]
>
> Glen
Graham Mayor - 13 Jul 2007 06:35 GMT
The answer to your other question can be found at
http://www.gmayor.com/export_field.htm

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Found the answer at this post.
>
[quoted text clipped - 34 lines]
>>
>> Glen