Conditionally include a picture

S

Schorn

I am trying to conditionally include a picture in merged document. We use
OmniRush to merge data to Word files. In OmniRush variables are listed in a
text file. I have a variable that indicates the location of logo (bmp). If
this field is blank, I would like the Word document not to include the
picture box. Is this possible?
 
G

Graham Mayor

I know nothing about OmniRush whatsoever, but if you are using a standard
merge document in Word, then you can use a conditional field in that
document eg

{IF {Mergefield fieldname} <> "" "{IncludePicture fieldname}"}

You'll need to adapt that to suit your data and images.

See also
http://www.gmayor.com/formatting_word_fields.htm#InsertConditionally

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Q

qqla

Dear Graham Mayor,
It is nice of you to give people your advice, but in this instance you
should warn that this solution will not work (in word 2000 anyway,
unless meantime someone found the fix for it).
The problem is that IncludePicture repeats the same picture after merge
when it is used inside the IF construct. Non of the update method (F9
etc.) doesn't work. I'm trying to solve this problem on my own in tha
last few days, but without much success.
Qqla.
 
G

Graham Mayor

You are right - unfortunately. The fields are resolved differently when
included in the conditional field. I can't see an alternative at the moment.
:(

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Schorn

The solution was quite easy. I inserted an includepicture field and where the
file name would normally go, I put the DDE code from Goldmine referencing the
variable of the http location of the file.
 

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