Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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

like image 514
Shlomi Komemi Avatar asked Mar 14 '11 17:03

Shlomi Komemi


2 Answers

You need to install the full version of Microsoft Office if you desire to use the functionality. The interop assemblies within themselves do not provide any functionality, rather, these in turn invoke the functions from Microsoft Office itself. Hence you will need to install Office on the web server.

As an alternative, you could use the Office Sharepoint Server, which allows web users to generate MS Office document content.

like image 168
code4life Avatar answered Nov 17 '22 14:11

code4life


You need to install a DLL for Interop assemblies for various versions. Most of them are available on Visual Studio DLL Assembly repository.

like image 29
Chetan Dhamija Avatar answered Nov 17 '22 13:11

Chetan Dhamija