Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Russell Campbell Russell Campbell is offline
external usenet poster
 
Posts: 6
Default Insert image conditionally

I was on http://word.mvps.org/FAQS/MailMerge/...AMailMerge.htm where
there is some info on conditionally inserting an image into a document.
Unfortunately, I am not having much success with what it says should work.

Specifically, it says use something like this:

{ IF { MERGEFIELD FirstName } "" { INCLUDEPICTURE "C:\\Temp\\Logo.tif" \d
\* MERGEFORMAT } "" }

But it will not display the graphic and it seems to sometimes mangle my
entries (for instance, I close the document and bring it up later and it has
changed what I entered).

My statement was:

{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE "c:\\msds\\test.bmp" \d \*
MERGEFORMAT } "" }



But Word alters it and later I get:



{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE "../../../..msds\\test.bmp"
\* MERGEFORMAT \d } "" }



Not sure why that is and really don't care as long as this will work, but it
does not. Any help would be appreciated.



Russell Campbell


  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Insert image conditionally

Try - Tools options general web options files uncheck update links
on save.

--

Graham Mayor - Word MVP

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



Russell Campbell wrote:
I was on http://word.mvps.org/FAQS/MailMerge/...AMailMerge.htm
where there is some info on conditionally inserting an image into a
document. Unfortunately, I am not having much success with what it
says should work.
Specifically, it says use something like this:

{ IF { MERGEFIELD FirstName } "" { INCLUDEPICTURE
"C:\\Temp\\Logo.tif" \d \* MERGEFORMAT } "" }

But it will not display the graphic and it seems to sometimes mangle
my entries (for instance, I close the document and bring it up later
and it has changed what I entered).

My statement was:

{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE "c:\\msds\\test.bmp"
\d \* MERGEFORMAT } "" }



But Word alters it and later I get:



{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE
"../../../..msds\\test.bmp" \* MERGEFORMAT \d } "" }



Not sure why that is and really don't care as long as this will work,
but it does not. Any help would be appreciated.



Russell Campbell



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Russell Campbell Russell Campbell is offline
external usenet poster
 
Posts: 6
Default Insert image conditionally

Thanks. I'll check that out. I'm making progress. It seems that it is
necessary to use F9 to update or this just doesn't work as expected. I have
to do some testing in a real document - only been using a little test doc so
far - then I have to see if I can write a macro to make the necessary
changes in hundreds of existing docs.

"Graham Mayor" wrote in message
...
Try - Tools options general web options files uncheck update
links on save.

--

Graham Mayor - Word MVP

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



Russell Campbell wrote:
I was on http://word.mvps.org/FAQS/MailMerge/...AMailMerge.htm
where there is some info on conditionally inserting an image into a
document. Unfortunately, I am not having much success with what it
says should work.
Specifically, it says use something like this:

{ IF { MERGEFIELD FirstName } "" { INCLUDEPICTURE
"C:\\Temp\\Logo.tif" \d \* MERGEFORMAT } "" }

But it will not display the graphic and it seems to sometimes mangle
my entries (for instance, I close the document and bring it up later
and it has changed what I entered).

My statement was:

{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE "c:\\msds\\test.bmp"
\d \* MERGEFORMAT } "" }



But Word alters it and later I get:



{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE
"../../../..msds\\test.bmp" \* MERGEFORMAT \d } "" }



Not sure why that is and really don't care as long as this will work,
but it does not. Any help would be appreciated.



Russell Campbell





  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Insert image conditionally

When merging graphics you need to merge to a new document then update the
fields in that document - see http://www.gmayor.com/mail_merge_graphics.htm

--

Graham Mayor - Word MVP

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


Russell Campbell wrote:
Thanks. I'll check that out. I'm making progress. It seems that it
is necessary to use F9 to update or this just doesn't work as
expected. I have to do some testing in a real document - only been
using a little test doc so far - then I have to see if I can write a
macro to make the necessary changes in hundreds of existing docs.

"Graham Mayor" wrote in message
...
Try - Tools options general web options files uncheck
update links on save.

--

Graham Mayor - Word MVP

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



Russell Campbell wrote:
I was on http://word.mvps.org/FAQS/MailMerge/...AMailMerge.htm
where there is some info on conditionally inserting an image into a
document. Unfortunately, I am not having much success with what it
says should work.
Specifically, it says use something like this:

{ IF { MERGEFIELD FirstName } "" { INCLUDEPICTURE
"C:\\Temp\\Logo.tif" \d \* MERGEFORMAT } "" }

But it will not display the graphic and it seems to sometimes mangle
my entries (for instance, I close the document and bring it up later
and it has changed what I entered).

My statement was:

{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE "c:\\msds\\test.bmp"
\d \* MERGEFORMAT } "" }



But Word alters it and later I get:



{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE
"../../../..msds\\test.bmp" \* MERGEFORMAT \d } "" }



Not sure why that is and really don't care as long as this will
work, but it does not. Any help would be appreciated.



Russell Campbell



  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Russell Campbell Russell Campbell is offline
external usenet poster
 
Posts: 6
Default Insert image conditionally

Thanks again. I went to your site to look around and found some helpful
information and to Cindy Meister's site. I think some of the issues I'm
having are related to using Excel as a data source. I'm wondering if a text
file would be better. What can you tell me about that?

"Graham Mayor" wrote in message
...
When merging graphics you need to merge to a new document then update the
fields in that document - see
http://www.gmayor.com/mail_merge_graphics.htm

--

Graham Mayor - Word MVP

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


Russell Campbell wrote:
Thanks. I'll check that out. I'm making progress. It seems that it
is necessary to use F9 to update or this just doesn't work as
expected. I have to do some testing in a real document - only been
using a little test doc so far - then I have to see if I can write a
macro to make the necessary changes in hundreds of existing docs.

"Graham Mayor" wrote in message
...
Try - Tools options general web options files uncheck
update links on save.

--

Graham Mayor - Word MVP

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



Russell Campbell wrote:
I was on http://word.mvps.org/FAQS/MailMerge/...AMailMerge.htm
where there is some info on conditionally inserting an image into a
document. Unfortunately, I am not having much success with what it
says should work.
Specifically, it says use something like this:

{ IF { MERGEFIELD FirstName } "" { INCLUDEPICTURE
"C:\\Temp\\Logo.tif" \d \* MERGEFORMAT } "" }

But it will not display the graphic and it seems to sometimes mangle
my entries (for instance, I close the document and bring it up later
and it has changed what I entered).

My statement was:

{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE "c:\\msds\\test.bmp"
\d \* MERGEFORMAT } "" }



But Word alters it and later I get:



{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE
"../../../..msds\\test.bmp" \* MERGEFORMAT \d } "" }



Not sure why that is and really don't care as long as this will
work, but it does not. Any help would be appreciated.



Russell Campbell







  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Insert image conditionally

The Excel data source should not be an issue provided its use produces the
correct filename and path - however the conditional field may be - see the
workaround at http://www.gmayor.com/formatting_word_fields.htm
(Conditionally Insert a Graphical Image)

--

Graham Mayor - Word MVP

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


Russell Campbell wrote:
Thanks again. I went to your site to look around and found some
helpful information and to Cindy Meister's site. I think some of the
issues I'm having are related to using Excel as a data source. I'm
wondering if a text file would be better. What can you tell me about
that?
"Graham Mayor" wrote in message
...
When merging graphics you need to merge to a new document then
update the fields in that document - see
http://www.gmayor.com/mail_merge_graphics.htm

--

Graham Mayor - Word MVP

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


Russell Campbell wrote:
Thanks. I'll check that out. I'm making progress. It seems that
it is necessary to use F9 to update or this just doesn't work as
expected. I have to do some testing in a real document - only been
using a little test doc so far - then I have to see if I can write a
macro to make the necessary changes in hundreds of existing docs.

"Graham Mayor" wrote in message
...
Try - Tools options general web options files uncheck
update links on save.

--

Graham Mayor - Word MVP

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



Russell Campbell wrote:
I was on http://word.mvps.org/FAQS/MailMerge/...AMailMerge.htm
where there is some info on conditionally inserting an image into
a document. Unfortunately, I am not having much success with what
it says should work.
Specifically, it says use something like this:

{ IF { MERGEFIELD FirstName } "" { INCLUDEPICTURE
"C:\\Temp\\Logo.tif" \d \* MERGEFORMAT } "" }

But it will not display the graphic and it seems to sometimes
mangle my entries (for instance, I close the document and bring
it up later and it has changed what I entered).

My statement was:

{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE
"c:\\msds\\test.bmp" \d \* MERGEFORMAT } "" }



But Word alters it and later I get:



{ IF { MERGEFIELD msdsmfg } = 1 {INCLUDEPICTURE
"../../../..msds\\test.bmp" \* MERGEFORMAT \d } "" }



Not sure why that is and really don't care as long as this will
work, but it does not. Any help would be appreciated.



Russell Campbell



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
Is there a way to conditionally insert text containing quotes (chr charlie Microsoft Word Help 3 October 26th 06 02:42 PM
Autoshapes is greyed out, how can I insert a 3-d image? erika Microsoft Word Help 1 December 11th 05 04:57 PM
Insert image automatically Joe Microsoft Word Help 1 October 5th 05 03:55 PM
Creating a form where you can insert an image Ange Microsoft Word Help 1 September 26th 05 02:43 PM
how do I insert variable image Xoqon Microsoft Word Help 1 December 6th 04 01:18 PM


All times are GMT +1. The time now is 08:19 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"