且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我怎样才能读取服务器MS Office文件,而无需安装MS Office和不使用互操作库?

更新时间:2023-02-07 21:16:30

对于所有MS Office版本:

For all MS Office versions:

  • You could use the third-party components like TX Text Controls for Word and TMS Flexcel Studio for Excel

有关新的Office(2007):

For the new Office (2007):

  • You could do some basic stuff using .net functionality from system.io.packaging. See how at http://msdn.microsoft.com/en-us/library/bb332058.aspx

对于旧办公室(2007年之前):

For the old Office (before 2007):

  • The old Office formats are now documented: http://www.microsoft.com/interop/docs/officebinaryformats.mspx. If you want to do something really easy you might consider trying it. But be aware that these formats are VERY complex.