This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. To change the default and use PIAs instead of embedding type information, expand the References node in Solution Explorer and then select Microsoft.Office.Interop.Excel or Microsoft.Office.Interop.Word. If you cannot see the Properties window, press F4. Find Embed Interop Types in the list of properties, and change its value to False. Microsoft.Office.Interop.Excel.dll エラーの多くが、欠損または破損した Microsoft.Office.Interop.Excel.dll ファイルと関連があります。以下は、最も一般的な Microsoft.Office.Interop.Excel.dll エラーのトップ5とその修復方法です。.
- The code worked fine but after Office 2016 installation i have seen that i couldn't use using Excel = Microsoft.Office.Interop.Excel; The only compatible library that i found is. Microsoft.Office.Core (Microsoft Office 16.0 Object Library) I could't find any examples accesing Excel files.
- Dotnet add package Microsoft.Office.Interop.Excel -version 15.0.4420.1017 For projects that support PackageReference, copy this XML node into the project file to reference the package.
Active2 years ago
This is the code which i was using before the Office 2016 installation.
![Microsoft office interop excel location Microsoft office interop excel location](https://farm6.staticflickr.com/5776/20738902230_fe02bf7c03_z.jpg)
The code worked fine but after Office 2016 installation i have seen that i couldn't use
using Excel = Microsoft.Office.Interop.Excel;
The only compatible library that i found is
Microsoft.Office.Core (Microsoft Office 16.0 Object Library)
I could't find any examples accesing Excel files. Is there any other way to access Excel files with Office 2016 installed(PIA)
This is the Error which I get when i try to run the code
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Excel.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).
kostas
kostaskostas19911 gold badge66 silver badges1919 bronze badges
2 Answers
Try these steps:
Microsoft.office.interop.excel Visual Studio 2017
- Make a reference to 'Microsoft Office 16.0 Object Library' (you may see version 2.5.0.0) and also 'Microsoft Office Interop Excel' (you may see version 15.0.0), this one found at ASSEMBLIES EXTENSIONS in VS.
- Make an 'Using' with 'System.Runtime.InteropServices' and (I guess) 'System.Reflection' at the top of your routine/module.
- I will try to convert from VB.NET to you:
UPDATE
Additionally, SP Flash Tool now supports Windows and Linux in the event you are on a Mac, you might use a virtual machine.Also Check: Download SP Flash Tool(Smartphone Flash Tool)What is SP Flash Tool?Basically, it is a Smartphone Flash Tool. The significant being, flashing ROMs, ZIP Files, Custom recoveries and updating to official programs manually.Also Check:If you have encountered ODIN for Samsung smartphones then think about this Flash Tool as ODIN for MediaTek mobiles. SP flash tool is a program which helps you flash the Stock ROMs, Custom ROM and fixing errors in some extreme cases such as firmware upgrade, Flash retrieval, unbrick bricked. Below, we have included quick download links to each of the available SP Flash Tool versions.Disclaimer: Flash Tool can’t work correctly in the event that you don’t have the proper drivers installed so before really moving to utilize this software please read on how it’s possible to install MediaTek VCOM USB drivers. Flash tool software free download. You can use this Smart Phone Flash Tool to execute many tasks on supported MediaTek Smartphones or tablets.
Sometimes the above mentioned DLL is found in other than COM tab. To find the INTEROP references (they're the same as PIA), you must select them as shown below:
These files either be related to your Office package or via PIA (it depends your Office version). See here:PIA Libraries
If you do not see the DLL's as above, download and install PIA in your computer.
David BSDavid BS1,37211 gold badge1111 silver badges2424 bronze badges
The problem was in an entirely different area. The issue had to do with the registry. I completely removed all registry keys that had to do with Office installation and reinstalled Office 2016. That fixed the issue. Thanks for the answers.
kostaskostas19911 gold badge66 silver badges1919 bronze badges