Link to home
Start Free TrialLog in
Avatar of antonioking
antoniokingFlag for United Kingdom of Great Britain and Northern Ireland

asked on

IF INCLUDEPICTURE missing...

Is it possible to insert an image using INCLUDEPICTURE mergefield only if the image path exists.
If the image path does not exist, then place the text "<SIGNATURE_IMAGE_MISSING>"

Thanks
Avatar of Rgonzo1971
Rgonzo1971

Hi,
pls refer to
http://social.technet.microsoft.com/Forums/en-US/word/thread/39fac7e1-753e-40b2-b587-e4b1d144c9da/

{ IF "{ INCLUDETEXT "{ MERGEFIELD Image }" bm \c AnsiText }" <> "{ INCLUDETEXT \ }" {IF {INCLUDEPICTURE "{MERGEFIELD Image}" \d} {INCLUDEPICTURE {IF TRUE {MERGEFIELD Image}} }} "some other text" }

Open in new window

Regards
Avatar of antonioking

ASKER

Hi,

I have tried your code,
I have defined defined the "image" merge field using { SET Image "C:\\image.jpg" }
Is this correct?

I have deliberately specified a location I know there is no image in, and I am seeing a field calculation error when completing the mail merge.
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial