Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / January 2006

Tip: Looking for answers? Try searching our database.

Conditionally include a picture

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Schorn - 29 Dec 2005 03:44 GMT
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?
Graham Mayor - 29 Dec 2005 07:23 GMT
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

Signature

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

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

> 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?
qqla - 30 Dec 2005 00:50 GMT
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
[quoted text clipped - 20 lines]
> of logo (bmp). If this field is blank, I would like the Word document
> not to include the picture box. Is this possible?

Signature

qqla

Graham Mayor - 30 Dec 2005 07:47 GMT
You are right - unfortunately. The fields are resolved differently when
included in the conditional field. I can't see an alternative at the moment.
:(

Signature

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

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

> Dear Graham Mayor,
> It is nice of you to give people your advice, but in this instance you
[quoted text clipped - 31 lines]
>> of logo (bmp). If this field is blank, I would like the Word document
>> not to include the picture box. Is this possible?
Schorn - 02 Jan 2006 04:01 GMT
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.

> You are right - unfortunately. The fields are resolved differently when
> included in the conditional field. I can't see an alternative at the moment.
[quoted text clipped - 35 lines]
> >> of logo (bmp). If this field is blank, I would like the Word document
> >> not to include the picture box. Is this possible?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.