简体   繁体   English

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

[英]Primary Interop Assemblies for Microsoft Office Applications

I'm trying to install Interop Assemblies for Microsoft Office on my web servers, for the use of reading word documents from my site. 我正在尝试在我的Web服务器上安装Microsoft Office的Interop程序集,以便从我的站点读取word文档。

Can I install just the Assemblies? 我可以只安装装配体吗? Or the only way is installing an office suite? 或者唯一的方法是安装办公套件?

The exception : 例外:

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.

List of Interop Assemblies: http://msdn.microsoft.com/en-us/library/15s06t57.aspx#pialist 互操作程序集列表: http//msdn.microsoft.com/en-us/library/15s06t57.aspx#pialist

You need to install the full version of Microsoft Office if you desire to use the functionality. 如果您希望使用该功能,则需要安装完整版的Microsoft Office。 The interop assemblies within themselves do not provide any functionality, rather, these in turn invoke the functions from Microsoft Office itself. 互操作程序集本身不提供任何功能,而是这些功能又调用Microsoft Office本身的功能。 Hence you will need to install Office on the web server. 因此,您需要在Web服务器上安装Office。

As an alternative, you could use the Office Sharepoint Server, which allows web users to generate MS Office document content. 作为替代方案,您可以使用Office Sharepoint Server,它允许Web用户生成MS Office文档内容。

You need to install a DLL for Interop assemblies for various versions. 您需要为各种版本的Interop程序集安装DLL。 Most of them are available on Visual Studio DLL Assembly repository. 其中大多数可用于Visual Studio DLL Assembly存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM