开发者

ASP.NET with MS Word

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


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


Aspose.Words is another great option.

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


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

http://www.officewriter.com

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜