I'd like to develop a VB.NET application that creates a Publisher 2003
application object, opens a document and performs a mailmerge. However, I
need to update a database for each record that is "mailmerged". Is this
possible? Does publisher throw an event for each record that is merged? Or
am I on the wrong track.
The reason VB.NET is part of the equation is because I want them to do this
from within their main application (which is written in VB.NET).
Thanks for any assistance.
Mark
Wei-Dong XU [MSFT] - 19 Oct 2004 06:40 GMT
Hi Mark,
"However, I need to update a database for each record that is "mailmerged"."
Could you be so kind to tell me more detailed inforamtion regarding what
you are going to do? Appreciate in advance!
For performing the Event sink with Office application in VB.net, I'd
suggest this kb article will provide some assistance for you.
302816 How To Handle Events for Microsoft Word Using Microsoft Visual Basic
.NET
http://support.microsoft.com/?id=302816
In addition, there are two events from Publisher regarding the Mailmerge
record: MailMergeBeforeRecordMerge and MailMergeAfterRecordMerge Event.
If they are fit for your scenario, you can sink them and perform the
corresponding operation.
Please feel free to let me know if you have any question.
Best Regards,
Wei-Dong Xu
Microsoft Product Support Services

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Yan-Hong Huang[MSFT] - 21 Oct 2004 04:20 GMT
Hello Mark,
I was reviewing the issue thread. Is the problem resolved? If there is any
unclear, please feel free to post in the group and we will follow up.
Thanks very much.
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! ?C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.