What is best solution to generate Word document from ASP.NET?

asp.net, ms-word, report, visual-studio-2010, xml

Solution

Use the Office OpenXML SDK. For later versions of Office (2007 and above), this is the standard. There are other ways as mentioned in other answers, but OpenXML will give you the greatest level of control over the output.

Here is some documentation to get you started: http://msdn.microsoft.com/en-us/office/bb265236.aspx

Problem

I would like to generate a word document from my ASP.NET application. Currently we show an "Agenda List" which is the agenda information and all items/subjects. This page needs to have the ability to open in word. The agenda page is not static, it's a dynamic list of agenda items pulled from SQL Server. Any suggestions on the best solution? I'm looking for a quick solution and OpenXML seems to be a bit too time consuming. I'm open to purchasing third party tools. Thanks!

Original source