Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
DotNet Data Table as Mail Merge Data Source | Mailmerge | |||
Specific Email Merge w/ Specific Attachements | Mailmerge | |||
Mail Merge Issue With Office 97 - Excel Data Source | Mailmerge | |||
Mail merge data source problem | Mailmerge | |||
Mail merge error occurs when filtering Excel data source | Mailmerge |