IncludePicture Repeats the Same Picture

J

JSonnabend

I'm doing a merge from a Delphi application into Word. One of the
fields in the merge data is the full path to a jpeg file that I want
included in the output document. I'm using the IncludePicture field as
follows:

{IF { MERGFIELD LocalImageFile}<>"" {INCLUDEPICTURE {MERGEFIELD
LocalImageFile}} "Typed Drawing"}

I've included the line:

{IF { MERGFIELD LocalImageFile}<>"" {MERGEFIELD LocalImageFile}}

to insert the LocalImageFile field into the output document just to
check that Word is receiving the proper file name. It is.

The problem is that Word is inserting the same graphic (from an earlier
merge, I think) in every IncludePicture field.

I've tried every combination of quotation marks, spacing and the like.
I'm baffled.

Anyone have any ideas?

TIA

- Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top