Reputation: 39
I am trying to integrate Microsoft Word with C#. But when i am trying to add Assembly "Microsoft.Office.Interop.Word" I couldn't find this in the reference list:
What am I missing? I'm using Visual Studio Ultimate 2012.
Please help...
Upvotes: 1
Views: 27767
Reputation: 353
You need to install MS office to your computer.
Or download the Primary Interop Assemblies from here.
http://www.microsoft.com/en-us/download/details.aspx?id=3508
Then add it to your project reference.
Upvotes: 0
Reputation: 862
To add a reference to a primary interop assembly:
Open your Visual Studio Tools for Office project and select the project name in Solution Explorer.
On the Project menu, click Add Reference.
On the .NET tab, select the primary interop assembly you want in the Component Name list. For more information about the available Microsoft Office primary interop assemblies, see Office primary interop assemblies.
Click OK.
The assembly name appears in the References folder of Solution Explorer.
Upvotes: 5