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
Asked
Active
Viewed 216 times
-1
-
any reason for Word File? not Crystal reports ? – Asad Feb 21 '10 at 05:26
3 Answers
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
0
OfficeWriter is another third party tool specifically designed for scenarios like this:

Eisbaer
- 189
- 1
- 6