Solved

IF INCLUDEPICTURE missing...

Posted on 2013-06-12
3
451 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 48

Expert Comment

by:Rgonzo1971
Comment Utility
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
Comment Utility
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 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
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 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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now