Hi =?Utf-8?B?SmVmZiBPLg==?=,
Aha; telling us the field is being unlinked (turned into static text) does give me
an idea. What happens if you select the entire field code set, then press Ctrl+F9
(insert a pair of field brackets around the selection and type QUOTE at the
beginning of this new, top-level field? (IOW, you're putting the whole thing in a
QUOTE field).
> Word version is Word 2003 (11.6502.6360) SP1
> Part of Microsoft Office Professional Edition 2003.
>
> THIS WORKS: (Produces a dynamically linked picture above and the ### +
> variable filename below)
-----------------------------------------------------------------------------------
------
> { INCLUDEPICTURE " { MERGEFIELD "SubSystem_Picture_1}"}
> { IF { MERGEFIELD "SubSystem_Picture_1" }<> "" " ### { MERGEFIELD
> "SubSystem_Picture_1" } \* MERGEFORMAT }
> Figure { STYLEREF 1 \s } { SEQ Figure \* ARABIC \s 1 } { MERGEFIELD
> Subsystem_Picture_1_Caption } " "NO PICTURE 1" }
-----------------------------------------------------------------------------------
------
>
> THIS DOES NOT WORK: (inserts a static, non-linked picture during the merge
> as if the first picture was pulled into the main document before merge
> execution began)
-----------------------------------------------------------------------------------
------
> { IF { MERGEFIELD "SubSystem_Picture_1" }<> "" "{ INCLUDEPICTURE " {
> MERGEFIELD "SubSystem_Picture_1" }" \* MERGEFORMAT }
> Figure { STYLEREF 1 \s } { SEQ Figure \* ARABIC \s 1 } { MERGEFIELD
> Subsystem_Picture_1_Caption } " "NO PICTURE 1" }
-----------------------------------------------------------------------------------
-------
>
> The Mergefield is a text filename with the complete path brought in from
[quoted text clipped - 3 lines]
> formatting, locked and manual links, etc. No variation resulted in the
> desired outcome.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply in
the newsgroup and not by e-mail :-)
Jeff O. - 12 May 2006 18:54 GMT
I had high hopes, but no dice. I stripped the main document down to just
the following:
--------------------------------------------------------------------
{ IF { MERGEFIELD "SubSystem_Picture_1" }<> "" "{ INCLUDEPICTURE { QUOTE {
MERGEFIELD "SubSystem_Picture_1" } } }" "NO PICTURE 1"}
---------------------------------------------------------------------
And I tried using the {QUOTE} field everywhere that quotes appear above and
in every combination. The behaviour was exactly the same in all cases. Do
you have a version of Word where this works? Maybe I can find an old copy
somewhere. This is being run under XP if that makes any difference.
Any help you can offer would be greatly appreciated.
Thanks, Jeff
> Hi =?Utf-8?B?SmVmZiBPLg==?=,
>
[quoted text clipped - 49 lines]
> This reply is posted in the Newsgroup; please post any follow question or reply in
> the newsgroup and not by e-mail :-)
Cindy M -WordMVP- - 14 May 2006 11:16 GMT
Hi =?Utf-8?B?SmVmZiBPLg==?=,
> I had high hopes, but no dice. I stripped the main document down to just
> the following:
[quoted text clipped - 6 lines]
> you have a version of Word where this works? Maybe I can find an old copy
> somewhere. This is being run under XP if that makes any difference.
No, please re-read the instructions in my original message. You don't put a
QUOTE field wherever you see quotes. That's not the intention, and no where
did I say that. You put the QUOTE field AROUND the entire field set. Just
because the name of the field is "quote" doesn't mean you should try using it
like the symbols!
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
Jeff O. - 15 May 2006 15:58 GMT
Thanks, but it still doesn't work. If you think of anything else, please let
me know.
Regards, Jeff
> Hi =?Utf-8?B?SmVmZiBPLg==?=,
>
[quoted text clipped - 22 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Graham Mayor - 16 May 2006 06:55 GMT
Try this workaround:
{ INCLUDEPICTURE { IF { Mergefield "SubSystem_Picture_1" } <> "" "D:\\My
Documents\\My Pictures\\{Mergefield "SubSystem_Picture_1" }" "D:\\My
Documents\\My Pictures\\Blank.jpg" } }
Blank.jpg is essentially what it says. Save a blank jpg image from (eg)
Windows Paint.
The paths will be determined by your filing system and what the field
contains

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Thanks, but it still doesn't work. If you think of anything else,
> please let me know.
[quoted text clipped - 28 lines]
>> This reply is posted in the Newsgroup; please post any follow
>> question or reply in the newsgroup and not by e-mail :-)
Cindy M -WordMVP- - 16 May 2006 14:05 GMT
Hi =?Utf-8?B?SmVmZiBPLg==?=,
> If you think of anything else, please let
> me know.
Well, Word tends to update fields from the inside out. In
very early versions of Word, you couldn't nest an
IncludePicture field in an IF field for this reason. Since
people naturally try to do this :-), Microsoft altered the
behavior to a certain extent, but sometimes it does behave
differently than one would expect/wish.
"back in the day", we had to do this:
{ IncludePicture "{ IF { Mergefield x} <> "" "{ Mergefield
x }" "C:\\empty.bmp" }" }
the problem being, of course, that one doesn't necessarily
want to insert any graphic at all, in such a case... But if
it's very tiny, perhaps that won't be a problem?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)