简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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