View Single Post
  #12   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default More stupid INCLUDEPICTURE questions

I suspect with all this focus on the path name we've forgotten the other
thing you have to do, which is:
a. If you're outputting to a new document, select the content (ctrl-A) and
press F9 to update all the fields
b. If you're outputting to a printer, you have to check Word
Tools|Options|Print|"Update links".


Peter Jamieson
"Peter Jamieson" wrote in message
...
Larry,

You have a space befroe the { MERGEFIELD ) field in

{ INCLUDEPICTURE "{FILENAME \p}\\..\\ {MERGEFIELD ML_Number}.jpg" }


Is it actually in there, or is that a typo?

The other one

{ INCLUDEPICTURE "C:\Documents and
Settings\Larry\Desktop\BuyerTourTest\BuyerTour.doc \\..\\60116398.jpg" }


seems OK.

Peter Jamieson


"LAR" wrote in message
...
Peter,

Thanks again for all your help. Here is what I have:

{ INCLUDEPICTURE "{FILENAME \p}\\..\\ {MERGEFIELD ML_Number}.jpg" }

... and here is what it resolves to for the first pictu

{ INCLUDEPICTURE "C:\Documents and
Settings\Larry\Desktop\BuyerTourTest\BuyerTour.doc \\..\\60116398.jpg" }

The only difference I see between what I have and what you proposed is
that
I added the closing double quote after the .jpg.

As I said, I am trying to merge several pictures (4 in this test) into
this
document. I have all 4 in the folder with the main document but only 3
in
the DOCUMENTS path folder. When I merge, only the 3 pictures in the
DOCUMENTS path folder appear in the document.

Hopefully, someone with better eyes than I can see the error in my ways.
Thanks again for spending all the time on this.

LAR

"Peter Jamieson" wrote:

OK, I have checked again on Word 2000 and it seems to work much the same
way.

Can you check your INCLUDEPICTURE field /really/ carefully and make sure
that the path it constructs from the various fields and text is
identical to
the path of the image you want to insert, other than having doubled-up
backslashes. No extra spaces (easy to insert by accident when
cutting/pasting)!

Peter Jamieson
"Peter Jamieson" wrote in message
...
Sorry LAR,

I had forgotten you were using Word 2000. I'll have a look at that
version.

Peter Jamieson
"LAR" wrote in message
...
Peter,

Thanks for the help. This is more what I was looking for. Seems
like it
should work. I have changed my INCLUDEPICTURE to your syntax below,
and
while the syntax works the pictures still load from the DOCUMENTS
path in
toolsptions:files locations:documents. ???? It almost seems like I
have
some basic setting wrong that is making the INCLUDEPICTURE use that
DOCUMENTS
path.

Thanks again for taking a look.

"Peter Jamieson" wrote:

Worth trying the following, just in case...

{ INCLUDEPICTURE "{ filename \p }\\..\\{ MERGEFIELD picname }.jpg }

But
a. although it appears to work here these sorts of construct make
me
nervous
b. you may have to uncheck Word Tools|Options|General|"Web
options"|Files|"Update links on save"

Peter Jamieson
"LAR" wrote in message
...
I am now trying to use the INCLUDEPICTURE field to insert pictures
into
my
mail merge document. I would like to be able to merge pictures
into
the
document that are in the same folder as the main document. Here
is
what I
have tried and seen.

I have successfully merged the pictures by using the entire path
to
the
picture using something like {INCLUDE PICTURE "C:/temp/{MERGEFIELD
picname}.jpg" \* MERGEFORMAT}. However, I want to be able to use
the
"current folder" to merge the pictures from.

I have tried {INCLUDE PICTURE "{MERGEFIELD picname}.jpg" \*
MERGEFORMAT}
only to find that WORD uses the DOCUMENTS path
(Tools:ptions::file
locations::documents) as the path for the merged files. I know
this
because
I have moved some of the pictures into the DOCUMENTS path folder
and
only
the
pictures that I move there appear in the merged document.

I tried to use a relative path with things like {INCLUDE PICTURE
"../{MERGEFIELD picname}.jpg" \* MERGEFORMAT} with no luck.

I've looked at all the VBA examples for AutoOpen but could find
nothing
the
TEMPORAIRLY changed the DOCUMENTS path to that of the source
(main)
document.

So now, here I am again, asking how to accomplish what seems like
a
simple
task (merge the pictures in the current folder into my document)
that
I
can't
seem to figure out for myself.

Thanks in advance for any thoughts for ideas.

LAR