|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
mail merge?hi,
i wanted to know if it's possible to build an asp.net mail to automate mail merge with ms word documents. i already have the ms word document created with the merge fields, currently we go through the mail merge wizard to select a datasource to merge it with, but i wanted to create a page with buttons, selecting a certain button would cause the document to open using a certain datasource, everything would be merged and ready. is this possible? i've seen some sample code, but it's always creating the ms word document in the code, i don't need that it's already created, just a way to launch it from a button and have it merge to a datasource, datasource would change time to time so that i can control through web.config when needed. thanks. This product makes it pretty easy:
http://SteveOrr.net/reviews/AsposeWord.aspx Show quote "phil2phil" <philtwop***@yahoo.com> wrote in message news:1137178731.818365.108750@f14g2000cwb.googlegroups.com... > hi, > i wanted to know if it's possible to build an asp.net mail to automate > mail merge with ms word documents. i already have the ms word document > created with the merge fields, currently we go through the mail merge > wizard to select a datasource to merge it with, but i wanted to create > a page with buttons, selecting a certain button would cause the > document to open using a certain datasource, everything would be merged > and ready. is this possible? i've seen some sample code, but it's > always creating the ms word document in the code, i don't need that > it's already created, just a way to launch it from a button and have it > merge to a datasource, datasource would change time to time so that i > can control through web.config when needed. > thanks. > Thanks for the response! But is there a way to do it for free :D ?
Steve C. Orr [MVP, MCSD] wrote: Show quote > This product makes it pretty easy: > http://SteveOrr.net/reviews/AsposeWord.aspx > > -- > I hope this helps, > Steve C. Orr, MCSD, MVP > http://SteveOrr.net > > > "phil2phil" <philtwop***@yahoo.com> wrote in message > news:1137178731.818365.108750@f14g2000cwb.googlegroups.com... > > hi, > > i wanted to know if it's possible to build an asp.net mail to automate > > mail merge with ms word documents. i already have the ms word document > > created with the merge fields, currently we go through the mail merge > > wizard to select a datasource to merge it with, but i wanted to create > > a page with buttons, selecting a certain button would cause the > > document to open using a certain datasource, everything would be merged > > and ready. is this possible? i've seen some sample code, but it's > > always creating the ms word document in the code, i don't need that > > it's already created, just a way to launch it from a button and have it > > merge to a datasource, datasource would change time to time so that i > > can control through web.config when needed. > > thanks. > > Of course there is a way to do it for free. All you have to do is write
it yourself using the Word Object Model which is FREE-ly avaliable. > i wanted to know if it's possible to build an asp.net mail to automate You could probably open the document using Word interop - import> mail merge with ms word documents Microsoft.Office.Interop.Word, create an Application, load the Document, and then use its MailMerge property to do whatever you want. [Note that Microsoft doesn't really recommend doing stuff with Office interop on a server, though...] |
|||||||||||||||||||||||