View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default includepicture with problems in mailmerge

The correct syntax would be
{includepicture "c:\\folder1\\folder2\\photo.jpg"}
If you have the path c:\\folder1\\folder2\\ in a docproperty field
then
{ includepicture "{ DOCPROPERTY Path }Photo.jpg" }
or with merge
{ includepicture "{ DOCPROPERTY Path }{Mergefield Photo}.jpg"
or am I missing something here?

--

Graham Mayor - Word MVP

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


Anderflash wrote:
If I use:
{includepicture "c:\folder1\folder2\photo.jpg"}
and save the document, the includepicture will become:
{includepicture "photo.jpg"}

And if the document is in c:\folder1\folder2\folder3, the
includepicture will become:
{includepicture "..\photo.jpg"}

Is there a solution to keep the absolute path? Because this absolute
path is a docproperty field with if field and others fields, besides
the mergefield. So, because this behaviour, I lose all my fields
inside the includepicture. And I don't want to include only
photo.jpg, because the includepicture field uses the curDir from the
Word. So, if the user double-click the document, the includepicture
won't work. So, I want to (with VBA) include the absolute path (and
keeping it).