开发者

ASP.NET with MS Word

开发者 https://www.devze.com 2022-12-21 05:53 出处:网络
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 meDon\'t use Office Automat

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

精彩评论

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