Reply
 
Thread Tools Display Modes
  #1   Report Post  
Phuff
 
Posts: n/a
Default Getting mail merge data

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


  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

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

"Phuff" wrote in message
...
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




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DotNet Data Table as Mail Merge Data Source goraya Mailmerge 1 July 7th 05 09:51 AM
Specific Email Merge w/ Specific Attachements Mark B Mailmerge 9 February 21st 05 05:10 AM
Mail Merge Issue With Office 97 - Excel Data Source Matt Thorley Mailmerge 1 February 15th 05 11:38 PM
Mail merge data source problem campwes Mailmerge 1 January 25th 05 07:16 PM
Mail merge error occurs when filtering Excel data source Dave Mailmerge 1 December 2nd 04 10:46 PM


All times are GMT +1. The time now is 08:49 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"