-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

1
  • any reason for Word File? not Crystal reports ? Commented Feb 21, 2010 at 5:26

3 Answers 3

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).

Sign up to request clarification or add additional context in comments.

1 Comment

For Word 2007+ I use DocX from codeplex ;). It is working well and it's pretty much a no brainer.
1

Aspose.Words is another great option.

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

Comments

0

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

http://www.officewriter.com

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.