Re: Creating many letters(mail merge) from a single template in C#



Hi =?Utf-8?B?TWlrZTk5MDA=?=,

I meant how to create mail merge from a template programmatically using C#.

We can create mail merge without using a template, but using a template is a
problem.

Please explain WHY? You still haven't answered the concerns with your problem
description I stated in my first reply.

Taking your statement literally, it basically goes like this:
Word.Document doc = wdApp.Documents.Add(full path to template and all other
params here)
doc.MailMerge.OpenDataSource(all params here)
doc.MailMerge.Execute(params)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

.



Relevant Pages

  • Re: Outlook Templates
    ... For Word template, you may refer to the below KB article: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... When opening a new thread via the web interface, we recommend you check the ...
    (microsoft.public.windows.server.sbs)
  • Re: saving all documents at once
    ... >General Info on moving from Word Perfect to Word: ... >this new document as a Word template. ... >Microsoft's Legal Users' Guide) ... >This message is posted to a newsgroup. ...
    (microsoft.public.word.newusers)
  • Re: Word 97 Freezes on opening.
    ... it would appear that your Normal.dot may be corrupt. ... template or document (for more, see "WD: How Word for Windows Uses Temporary ... please post all follow-ups to the newsgroup so ... >>Microsoft MVP ...
    (microsoft.public.word.application.errors)
  • Re: How to share macros on a network?
    ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... > We have a similar situation but I put the template, ... >> Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ...
    (microsoft.public.word.vba.general)
  • Re: saving all documents at once
    ... Word and Word Perfect work very differently from one another. ... To use a template within Word, use File => New and pick your template. ... Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word http://addbalance.com/usersguide See also the MVP FAQ: http://www.mvps.org/word which is awesome! ... Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. ...
    (microsoft.public.word.newusers)

Loading