This the assembly necessary to do Office 2013 Word interop
For projects that support PackageReference, copy this XML node into the project file to reference the package. Paket add Microsoft.Office.Interop.Word -version 15.0.4797.1003.
Dependencies
This package has no dependencies.
Used By
NuGet packages (16)
Showing the top 5 NuGet packages that depend on Microsoft.Office.Interop.Word:
Package | Downloads |
---|---|
WebForms.DocumentViewer WebFormsDocumentViewer is a simple custom control that lets you embed documents (PDF, Word, PowerPoint, Excel, RichTextFormat and Text) in your ASP.NET WebForms pages. | 4.8K |
MyLibery.dll | 4.7K |
Ns.Microsoft.Office.Interop.All Microsoft.Office.Interop.All 15.0.0.2Regroupe les DLL d'interoperabilité de Office | 2.5K |
Shu.Utility | 2.5K |
AES.MAILMERGE.DLL Package for programming VBA Macro Office | 1.6K |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on Microsoft.Office.Interop.Word:
Repository | Stars |
---|---|
greenshot/greenshot Greenshot for Windows - Report bugs & features go here: https://greenshot.atlassian.net or look for information on: | 2.0K |
Tichau/FileConverter File Converter is a very simple tool which allows you to convert and compress one or several file(s) using the context menu in windows explorer. | 437 |
telerik/xaml-sdk The XAML SDK is an easy-to-use infrastructure with 1000+ developer focused examples for most of the Telerik WPF and Silverlight controls. | 372 |
saucepleez/taskt taskt (pronounced 'tasked' and formely sharpRPA) is free and open-source robotic process automation (rpa) built in C# powered by the .NET Framework | 357 |
MicrosoftTranslator/DocumentTranslator | 355 |
Version History
Version | Downloads | Last updated |
---|---|---|
15.0.4797.1003 | 1,237,166 | 3/10/2016 |
15.0.4420.1017 | 30,803 | 3/11/2016 |
12.0.4518.1014 | 59,640 | 9/6/2016 |
12.0.0 | 82,000 | 1/14/2016 |
I am interested in using C# to manipulate/Automate Excel files.
After browsing the web I have found VSTO but it seems you can not use that in Visual Studio Express Edition so I can not use that.
Just few minutes ago I noticed a question in this site that used this namespace in its code:
Microsoft Office Interop Assemblies
Microsoft.Office.Interop.Excel
So I am wondering if all I need to use that is add necessary reference and if so which reference to add?
UPDATE
I installed 'Primary Interop Assemblies' as the accepted answer suggested but for some reason they are still missing in the Add Reference dialog under '.NET' but they are present in GAC.
So I just added the reference using 'Browse' and located Microsoft.Office.Interop.Excel.dll
in GAC folder.
But looking for similar questions on this site regarding adding reference from GAC it seems this is not recommended.
These assemblies are available as NuGet packages, which is much easier than my original answer.
You can install by either right clicking on References in your project and selecting Manage NuGet packages… and searching for one of the packages listed below, or install using the Package Manager Console:
These are available as 'Primary Interop Assemblies', which can be installed with Office, or downloaded and installed separately. How to: Install Office Primary Interop Assemblies.
Once those are installed, you can reference them in your project in the Add Reference dialog, under .NET. If you do not see those Microsoft.Office.Interop assemblies listed, then they have not been installed yet. Install them from your setup, or download and install them separately (see my link above for the downloads).
Just had this problem myself and accepted answer didn't help me but I solved it with:
Add reference > Browse > C: > Windows > assembly > GAC > Microsoft.Office.Interop.Excel > 12.0.0.0_etc > Microsoft.Office.Interop.Excel.dll
Answers didn't help me to solve my problem, I couldn't find (and browse) the assemblies although I installed them using Microsoft's msi installer. For me, the excel assembly is located under C:WindowsassemblyGAC_MSILMicrosoft.Office.Interop.Excel14.0.0.0__71e9bce111e9429cMicrosoft.Office.Interop.Excel.dll
Just add reference of Microsoft.Office.Interop.Excel
.
It includes MicroSoft Excel related classes, no need to add more references.
I guess what you are trying to do is add Microsoft.Office.Interop.Excel
with using
statement with out adding its reference in your application, in that case it wont be found. Before calling it with using
statement you need to add a reference to ur application. Right click on References
and add the Excel Interop
reference.
Add reference > Browse > C: > Windows > assembly > GAC > Microsoft.Office.Interop.Excel > 12.0.0.0_wasd.. > Microsoft.Office.Interop.Excel.dll
its in the com component, named:
'Microsoft Office 14 Object Library'
The best option since office 2007 is using Open XML SDK for it.
We used Word.Interop but it halt sometimes, and it is not recommend for Microsoft, to use it as a server side document formatting, so Open XML SDK lets you creates word documents on DOCX and Open XML formats very easily.
It lets you going well with scability, confidence ( the files, if it is corrupted can be rebuild ), and another very fine characteristics.
If you have Microsoft Office installed, then you should be able to add a reference to Interop.Excel.
For example, the PC I'm typing this on has MSVS 2010 C# Express and Office 2010. I can add a reference to Microsoft.Office.Interop.Excel 11.0.0.0.
‘Hope that helps
I just had the same problem, but none of these answers helped me. I did find the dll on my pc in the location Mostey noted: (C:WindowsassemblyGAC_MSILMicrosoft.Office.Interop.Excel14.0.0.0__71e9bce111e9429cMicrosoft.Office.Interop.Excel.dll
), but this is not the one that was referenced in the project I was trying to get building.
The reference in our project in Visual Studio 2012 was pointing to C:Program Files (x86)Microsoft Visual Studio 11.0Visual Studio Tools for Office
. This location was empty for me, but it worked fine for everyone else. It took a number of tries, but I finally tracked down a working installer. I hope this saves others the same hassle!
Microsoft.office.interop.excel Version=16.0.0.0
–> Office Tools Bundle installer for VS2012 <–
This was located on the Office Documentation and Download page. Scroll down to Tools Downloads. There's also currently one for VS2013.
I found it located under Assemblies->Extensions in VS2013.
Here is super solid solution, you just need have excell.dll in your Debug/Release folder
Mine is 77,824 bytes, I downloaded it as a file, this also explain why some people have Debug compiled but Release not or vice versa.
Trento
1.Download and install: Microsoft Office Developer Tools
2.Add references from:
C:Program Files (x86)Microsoft Visual Studio 11.0Visual Studio Tools for OfficePIAOffice15
Microsoft Office Interop Assemblies 16.0.0.0
I had the same issue and the Microsoft.Office.Interop was not appearing in 'Add Reference' option once I upgraded VS2012 to VS2015. I basically repaired the installation (Control Panel > Programs & Features > VS 2012 > Right click Change > Repair) and added the Microsoft Office component. After that the same solution started working.
Microsoft Office Interop Assemblies 16.0 Download
Tags: .net, excel