user261710
user261710

Reputation: 39

How to add reference for "Microsoft.Office.Interop.Word" in .net

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

Answers (2)

Raymond Dumalaog
Raymond Dumalaog

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

Rachit Patel
Rachit Patel

Reputation: 862

To add a reference to a primary interop assembly:

  1. Open your Visual Studio Tools for Office project and select the project name in Solution Explorer.

  2. On the Project menu, click Add Reference.

  3. 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.

  4. Click OK.

The assembly name appears in the References folder of Solution Explorer.

Upvotes: 5

Related Questions