View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default conditional inclusion of pictures

The first thing I would do is put double quotes around each "{dropdown1}"

Especially if you have any bookmarks that have the same name as any of the
possible values in the dropdown, or e.g. a bookmark called "Air".

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Mercedes.K" wrote in message
...
Hi there...
I have created a form that has a dropdown list of airlines such as
AlItalia,
Emirates, etc... and I've entered an IF / THEN string to include the logo
of
the airline so that if Emirates is selected then the Emirates logo
appears,
and so on and so forth.
I'm having a few issues though...
1) All the logos show, but one. For some reason when I "Update Field"
after
selecting "Air France" the logo simply doesn't appear. I get a blank. As
far as I can see, the syntax is fine!
2) All the logos are saved at the same resolution of 200dpi and are all
approximately 3 inches wide and yet some show up at the right size and
others
show up much smaller (about 1 inch wide)
3) Is there an easy way to have the "includepicture" field update
automatically? There are a number of users who will use this form and
even
if I select to update fields in the options so that the form prints
properly,
they're going to get confused when they don't see the logo pop up.

Here's a shortened version of what I have...
{IF {Dropdown1} = "Air France" "{Includepicture "D:\\Fake Stuff\\1 AWB
Logos\\AirFrance.jpg"}" {IF {Dropdown1} = "AlItalia" "{Includepicture
"D:\\Fake Stuff\\1 AWB Logos\\AlItalia.jpg"}" {IF {Dropdown1} = "Emirates"
"{Includepicture "D:\\Fake Stuff\\1 AWB Logos\\Emirates.jpg"}" "" }}}

Thanks so much
mercedes