Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Microsoft Office应用程序的主互操作程序集_C#_.net_Office Interop_Office 2007 - Fatal编程技术网

C# Microsoft Office应用程序的主互操作程序集

C# Microsoft Office应用程序的主互操作程序集,c#,.net,office-interop,office-2007,C#,.net,Office Interop,Office 2007,我正在尝试在web服务器上安装Microsoft Office的互操作程序集, 用于从我的站点阅读word文档 我可以只安装组件吗? 或者唯一的方法是安装办公套件 例外情况: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. Th

我正在尝试在web服务器上安装Microsoft Office的互操作程序集, 用于从我的站点阅读word文档

我可以只安装组件吗? 或者唯一的方法是安装办公套件

例外情况:

Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
互操作程序集列表:

如果希望使用该功能,您需要安装完整版本的Microsoft Office。互操作程序集本身不提供任何功能,而是从Microsoft Office本身调用这些功能。因此,您需要在web服务器上安装Office


或者,您可以使用Office Sharepoint Server,它允许web用户生成MS Office文档内容。

您需要为各种版本的互操作程序集安装DLL。其中大多数都可以在Visual Studio DLL程序集存储库中找到。

虽然这不适用于版本14,但我在Office 2007 interop中也遇到了同样的问题。我能够在服务器上安装试用版;即使试用期满,这也足够了。永远不要使用ASP.NET或任何其他服务器技术的Office automation。Office应用程序是在桌面环境下运行的,如果幸运的话,在ASP.NET应用程序中会严重失败;如果你运气不好,会导致很多难以诊断的错误;不受支持,如果从服务器使用,甚至可能未获得正确许可。