Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Schorn
 
Posts: n/a
Default Conditionally include a picture

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?
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default Conditionally include a picture

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_wor...tConditionally

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Schorn wrote:
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?



  #3   Report Post  
qqla qqla is offline
Junior Member
 
Posts: 3
Default

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.

Quote:
Originally Posted by 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_wor...tConditionally

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Schorn wrote:
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?
  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default Conditionally include a picture

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


qqla wrote:
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.

Graham Mayor Wrote:
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_wor...tConditionally

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Schorn wrote:
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?



  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Schorn
 
Posts: n/a
Default Conditionally include a picture

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.

"Graham Mayor" wrote:

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


qqla wrote:
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.

Graham Mayor Wrote:
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_wor...tConditionally

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Schorn wrote:
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?




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the IF-THEN function to conditionally add picture? jco Mailmerge 2 September 23rd 05 08:44 PM
How do I hyperlink to a picture and include in an e-mail attachmen ndolinger Microsoft Word Help 0 August 18th 05 05:57 PM
Conditionally include a "new line" character/instruction? [email protected] Mailmerge 1 July 27th 05 09:33 PM
Include picture problem SCrowley Mailmerge 5 March 3rd 05 03:28 PM
How do I conditionally include a field in my merged labels? dchow Mailmerge 1 February 14th 05 08:05 PM


All times are GMT +1. The time now is 03:26 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"