Getting mail merge data

P

Phuff

I have a program that acts as an interim print driver, where you select it as
your printer, it generates a pdf and then my program that is running catches
the event to get the file and send it to our server. I need to have address
information to know where to send the document, which is gathered through an
options window that pops up. If someone wants to mail merge in Word ,
though, I don't know how to get the address data fom the file.

Is there a windows message that is thrown which I can catch and strip the
data from the file? Or is there some other way to get the data from the used
data source so I can file my own array and pass the document on to the server
with the correct addresses?

Thanks,

Paul

(e-mail address removed)
 
P

Peter Jamieson

I'm not aware of any Windows message that would help, other than any which
might be generated already as a consequence of manipulating the data source
fle, printing, saving a new Word document, etc. But I haven't worked at that
level for a long time.

One thing you can do in Word (2002/2003) is use MailMerge events to trap
some Merge events.

I have to say it isn't completely clear what you want to happen in the case
of a MailMerge given that a normal merge to /printer/ always prints as a
single job, not as a sequence of separate jobs, and why you would expect to
find recipient information in the data source.

Peter Jamieson
 

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