Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Is there a way to conditionally insert text containing quotes (chr | Microsoft Word Help | |||
Autoshapes is greyed out, how can I insert a 3-d image? | Microsoft Word Help | |||
Insert image automatically | Microsoft Word Help | |||
Creating a form where you can insert an image | Microsoft Word Help | |||
how do I insert variable image | Microsoft Word Help |