I'm trying to do much the same thing but have an "if not blank" issue as well and I'm using WP11. I've made a series of screen captures in case I type something wrong here.
First is the data that is being merged:
NameID;last;first;connections;updated;notes;private;photo;WebYN
You said: "The best method for inserting a graphic image into a document is by defining a character anchored graphic style" I named mine ABCphotos instead of the Ch&aracter Box that you called it.
Next is the merge code
IFNOTBLANK(photo)ASSIGN(photo;FIELD(photo))EMBEDMACRO(BoxCreate (BoxType:"ABCphotos"

BoxImageRetrieve (Action: MakeInternal!; photo )BoxUpdateDisplay ()BoxEnd (State:Save!) PosLineEnd ()
FIELD(last), FIELD(first)
IFNOTBLANK(connections)Connections: FIELD(connections)ENDIF
ENDIF
I've got a feeling that my ifs and end ifs are messing me up. In any case, what I want in English is:
If the photo field is not blank, then make a graphic box with the image from the path, then type the last name followed by a comma then the first name. In addition, if the connections field isn't empty, then type Connections: followed by the content of the connections field.
Now, what is happening is that when I merge, I'm getting as far as the third record - which is the first one that a path in the photos field, and I get:
"The macro is being canceled because of an out of range token completion code error condition processing product command 'WordPerfect.BoxImageRetrieve'.
Check line 2 of macro file 'WP}00003.TMG'"
And it won't let me quit - I have to end task to get out of it. Debugging doesn't give me much more info, and I still have to end task. Once I end task for WP, then PerfectScript shows up in the tasks and I have to end task that as well.
So, what am I doing wrong?
Kathryn Bassett - kathryn@bassett.net