Solved

IF INCLUDEPICTURE missing...

Posted on 2013-06-12
3
474 Views
Last Modified: 2013-07-02
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
0
Comment
Question by:antonioking
  • 2
3 Comments
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 39240338
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
0
 

Author Comment

by:antonioking
ID: 39240476
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.
0
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39243557
Hi

Herewith a functioning example

You have to re-insert the IncludePiture field for a right result,
the right result only appear on the merged file

Regards
IF1.docx
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is a feature provided by MS Word that lets you create an Table of Contents for your Word document automatically. To use this feature for other documents there are two steps involved,   1.  Prepare your document for a table of contents (he…
Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question