?
Solved

IF INCLUDEPICTURE missing...

Posted on 2013-06-12
3
Medium Priority
?
520 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

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 52

Accepted Solution

by:
Rgonzo1971 earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

765 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