Microsoft.Office.Interop.Excel Reference Cannot be found

后端 未结 4 1505
猫巷女王i
猫巷女王i 2021-02-18 19:07

I am having troubles adding the excel reference to my project. I have already installed Primary Interop Assemblies.

The project is detecting the Microsoft.Office.Interop

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-18 19:18

    I installed Microsoft office PIAs, but I had the same problem, cannot find microsoft.office.interop.excel dll, I also I installed Visual Studio 2010 Tools for the Office System 4.0 Runtime Service Pack 1 but still the problem persist.

    Finally I resolve the problem with an add of Office / SharePoint development package to my Visual Studio 2017 installation:

    Go to Tools > Get Tools and Features ..

    And then check Office / sharepoint development and modify your installation.

提交回复
热议问题