Home All Groups Group Topic Archive Search About
Author
13 Jan 2006 6:58 PM
phil2phil
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.

Author
13 Jan 2006 7:38 PM
Steve C. Orr [MVP, MCSD]
This product makes it pretty easy:
http://SteveOrr.net/reviews/AsposeWord.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Show quoteHide 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.
>
Are all your drivers up to date? click for free checkup

Author
13 Jan 2006 8:32 PM
phil2phil
Thanks for the response!  But is there a way to do it for free :D ?

Steve C. Orr [MVP, MCSD] wrote:
Show quoteHide 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.
> >
Author
13 Jan 2006 8:49 PM
tdavisjr
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.
Author
13 Jan 2006 8:52 PM
Paul Henderson
> i wanted to know if it's possible to build an asp.net mail to automate
> mail merge with ms word documents

You could probably open the document using Word interop - import
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...]

Bookmark and Share