-1

All, I develop web pages in Visual Studio 2005 in Visual Basic. I want to create reports in MS Word (text and several Tables also). How can do it. Can u Help me

Erik Philips
  • 53,428
  • 11
  • 128
  • 150

3 Answers3

4

Don't use Office Automation on a server. I don't know why so many there seem to be so many tutorials on using automation from ASP.NET when Microsoft themselves recommend very strongly against it.

Don't go the HTML route either - it's a cheat, and while Word 2003 will happily open the files you send, Word 2007 will complain about the file extension being incorrect.

There's a previous question here on creating Word documents using C#, and several of the answers/links apply to ASP.NET. The two most common approaches are WordML (XML - Word 2003) and Office Open XML (Word 2007).

Community
  • 1
  • 1
Aaronaught
  • 120,909
  • 25
  • 266
  • 342
  • For Word 2007+ I use DocX from codeplex ;). It is working well and it's pretty much a no brainer. – Nordes Nov 10 '11 at 15:42
1

Aspose.Words is another great option.

http://www.aspose.com/.net/word-component.aspx

J.Hogan
  • 430
  • 5
  • 7
0

OfficeWriter is another third party tool specifically designed for scenarios like this:

http://www.officewriter.com

Eisbaer
  • 189
  • 1
  • 6