Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

IF INCLUDEPICTURE missing...

Posted on 2013-06-12
3
Medium Priority
?
540 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 53

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 53

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

If you work with Word a lot, you probably use styles. If you use styles a lot, you've probably balled your fist more often than not when working with the ribbon. In Word 2007/2010, one of the things that I find missing when using styles is a quic…
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 teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
Suggested Courses

609 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