Thread: [Solved] Includepicture
View Single Post
 
Old 01-14-2025, 03:38 PM
Formd Formd is offline Windows 7 32bit Office 2007
Advanced Beginner
 
Join Date: Feb 2015
Location: TX
Posts: 49
Formd is on a distinguished road
Default Includepicture

Hello
I am trying to insert an image while running mailmerge using the code below. The image inserts with no problem however I need help in eliminating the error and image box if there is no image found in the Path used. In my code below i removed the /d because I need the image placed in the document but not linked to the path because the file is forwarded to clients that do not have access to the path.

I am using the following:

HTML Code:
{If{INCLUDEPICTURE {IF TRUE “C:\\folder\\folder2\\{ClientN}_cdes.png”}}{INCLUDEPICTURE{IF TRUE “C:\\folder\\folder2\\{ClientN}_cdes.png”} }}
ClientN is the mergefield that changes for each file

An example of the file name is BAC-9842_cdes.png. BAC-9842 changes for each file.
Thanks

Appreciate your help.
Reply With Quote