Cannot mail-merge with images?

R

Robin Tucker

Hi there,


I'm wanting to "mail merge" images from a directory into my document. I am
currently able to merge all fields *except* the images.

Here is a simplified version (a little test I've been doing). I have
created a document with a merge field called "thePath" and an
"IncludePicture" field, which has a mergefield as its location (once again
"thePath" ). Like so:

{ MERGEFIELD thePath }

{ INCLUDEPICTURE "{ MERGEFIELD thePath }" \* MERGEFORMAT }


My data source is a very simple flat file, which looks like this:

"thePath"
"C:\\1.jpg"
"C:\\2.jpg"


, and is saved as "merge.txt". Of course, I know 1.jpg and 2.jpg exist.

Now, when I select the data source and merge to a new document from the
merge document, I end up with the correct values for { MERGEFIELD thePath },
but "empty" images for the INCLUDEPICTURE field.

What am I doing wrong here?

Also, a related question: Is it possible to EMBED "{ MERGEFIELD
myOLEObjectFile }"? This would be extremely useful as I am mail merging not
just images and text, but also a specific kind of OLE object. It would save
me having to iterate through the document, replacing them manually via.
Automation (which would be amazingly slow).

Thankyou for any tips you can give me on this,




Robin
 
R

Robin Tucker

Ok, I think I've found the solution to my problem. I was "typing" the merge
field into the IncludePicture field, inserting text, rather than "inserting"
a new field.
 

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