MailMerge

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Mail Merge a word document

I have my mailmerge document set up. How can I use C# to perform the
equivalent of
1. Open the Document (The fields and data source are already setup)
2. Clicking on “Merge†in the mail merge toolbar
3. Selecting “New Documentâ€
4. Pushing the merge button.
5. Closing the old document.
6. Displaying the new document with the fields filled in to the user.

Thank you for your time,
James Steven Supancic III
 
First, you should know how to use COM in C#.
If you know how to do in VBA then it is very easy
to do in C# as it is same as like VBA

Thanks & Regards
Vadivel Kumar
http:\\csharpblogs.blogspot.com
 
I know how to use COM in C#.
I do not know how to do it in VBA.
Please tell me how to do it in VBA.
 
It is very easy in the terms of doing this in VBA.
First, record the activities what you have mentioned below thru Macro
Recorder (Tools > Macro > Record New Macro in Word). And go to Visual Basic
editor, it will show the code for the activities what ever you have made
while
recording macro. So, you can change slightly to implement in your projects
(.NET or VB or VC)

If you want me to put the code here, I can give you.

Thanks & Regards
Vadivel Kumar
http:\\csharpblogs.blogspot.com
 
It was very east once you told me how to figure out what COM calls I need to
use based on the macro code generated =).

Thank you very much.

Thank you for your time,
arrummzen
 
Back
Top