View Single Post
 
Old 02-27-2025, 10:52 PM
simotomaton simotomaton is offline Windows 10 Office 97-2003
Novice
 
Join Date: Feb 2025
Location: Australia
Posts: 3
simotomaton is on a distinguished road
Question mergefield within includepicture

I have been pulling my hair out trying to get a dynamic image to work in my merge. I've looked at numerous online 'answers' but have not had any actually work. This is my current code based on macropod's super helpful posts.

Quote:
{ IF { INCLUDEPICTURE { IF TRUE "\\\\server\\images\\{ MERGEFIELD Area_Code}.emf" } \d} {INCLUDEPICTURE { IF TRUE ""\\\\server\\images\\{ MERGEFIELD Area_Code }.emf" } \d} }
But I'm still getting "Error! Unknown op code for conditional." when I run my merge.
It has been tricky to test, as my merge is run by an application I use at work which generates the merge data on the fly, then sends the result to a printer (or pdf).

My image source is a network address. I don't have access to the local drives the software that is running the merge is on. I have tested that it has access to the network location using a direct link (ie no mergefield in the filename).

All my {} are created with Ctrl+F9.

Any help would be amazing, otherwise I'll be back to using 44 different merge templates, one for each area
Reply With Quote