Menu
Download microsoft.office.interop.word.dll Microsoft Office Interop Word Primary Interop Assembly version 10.0.4504.0 32bit. Problems using server-side Automation of Office. Developers who try to use Office in a server-side solution need to be aware of five major areas in which Office behaves differently than anticipated because of the environment. If your code is to run successfully, you must address these issues and minimize their effects as much as possible. Microsoft Word can be used with C# code. You have a Microsoft Word document (.doc) and want to read it in your C# program. With the Microsoft.Office.Interop.Word assembly, we get the contents and formatting from the document. C# (CSharp) Microsoft.Office.Interop.Word - 30 examples found. These are the top rated real world C# (CSharp) examples of Microsoft.Office.Interop.Word extracted from open source projects. You can rate examples to help us improve the quality of examples.
Active3 years, 2 months ago
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..
user261710user261710
2 Answers
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. https://monstersrenew710.weebly.com/blog/ken-wilber-pdf. 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.
C# Word Interop
Uwe Keim28.4k3333 gold badges142142 silver badges229229 bronze badges
Rachit PatelRachit Patel
You need to install MS office to your computer.
Or download the Primary Interop Assemblies from here.
Then add it to your project reference.
Raymond DumalaogRaymond Dumalaog
Not the answer you're looking for? Browse other questions tagged c#.net or ask your own question.
Active5 months ago
I got the sources of a .NET project that I am trying to compile. Although, the project uses the reference (namespace) Microsoft.Office.Interop.Word from Office 2010 that I cannot find anywhere.I was able to download the file
microsoft.office.interop.word.dll
but apparently the one from Office 2007 since it still doesn't compile because the project uses the function Document.SaveAs2
(which is from Office 2010 library).I have Office 2007 on my computer and Visual Studio 2012 Express for Desktop.Could you please explain me how this works? How come was I able to download the dll but I cannot find the one from Office 2010. How come my client was able to compile the projet without this dll? Does Visual Studio automatically 'connects' to the Microsoft Office libraries if installed when compiling ?
Thank you for your help.
wattostudios8,0171010 gold badges3737 silver badges5252 bronze badges
mentinetmentinet33922 gold badges44 silver badges2020 bronze badges
4 Answers
You shouldn't be searching for the dll on your local system yourself if you installed the assemblies correctly. See following link for information on how to download and install office interop libraries without installing office. Second link details how to add the assemblies to your project correctly.
For a further reference here are some pictures detailing how to add the dll correctly:
In your project, right-click on 'References' and select 'Add' and then 'Reference'.
Next select 'Extensions' in the Reference Manager, scroll to find the correct dll. Which for Microsoft.Office.Interop.Word.dll Office 2010 is the version 14 one.
Bilal BashirBilal Bashir
Microsoft Office Interop Word Requirements
Matheus MirandaMatheus Miranda66611 gold badge88 silver badges2121 bronze badges
Now that Visual Studio 2019 is out, you can install Microsoft Office interop libraries as part of an optional bundled component called
Visual Studio Tools for Office (VSTO)
.Microsoft have made this super easier, and you don't need to reference them in the GAC!
CrazyTimCrazyTim
3,34011 gold badge2121 silver badges4848 bronze badges
I manage to get the Microsoft.Office.Interop extensions listed in the suggested references after installing the Office Tools Bundle installer for VS2012 available here: http://blogs.msdn.com/b/somasegar/archive/2013/03/04/now-available-office-developer-tools-for-visual-studio-2012.aspx
mentinetmentinet33922 gold badges44 silver badges2020 bronze badges