Luis
Luis

Reputation: 6001

Word Mail Merge from ASP.NET web application

What is the best way to do this. I dont have access to the database since it is firewalled. It needs to be done throught the web interface.

I can generate a csv file and plug it into the word document, but it seems cumbersome to me. Is there any better way to do this?

Thanks

Edit:For future reference i ended up using a library called Syncfusion DocIO.

Upvotes: 2

Views: 9192

Answers (3)

Gonzalo Méndez
Gonzalo Méndez

Reputation: 548

Have you tryed NTemplates? Not exactly for Word documents but if you don't mind using RTF, it might be the solution. Download full source code and examples for free from ntemplates.codeplex.com

Upvotes: 1

Eisbaer
Eisbaer

Reputation: 199

OfficeWriter is a third-party library that lets you do mail merges in ASP.NET with DOC or DOCX. You didn't specify which file format you needed - Leniel's suggestion will work for DOCX, but if you need DOC (binary) support your best bet is with a third-party.

Automating Office on the server is never a good idea (see: http://support.microsoft.com/kb/257757)

http://www.officewriter.com

Upvotes: 1

Related Questions