Microsoft.Office.Interop.Excel Reference Cannot be found

后端 未结 4 1522
猫巷女王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条回答
  •  -上瘾入骨i
    2021-02-18 19:23

    As described in http://social.msdn.microsoft.com/Forums/vstudio/en-US/c9e83756-4ae2-4ed4-b154-1537f3bb3a22/cant-find-microsoftofficeinteropexceldll?forum=netfxsetup

    • On the Project menu, click "Add Reference."

    • On the COM tab, click Microsoft Excel Object Library, and then click Select. In Visual Studio 2012, locate Microsoft Excel 14.0 (or other version) Object Library on the COM tab.

    • Click OK in the Add References dialog box to accept your selections. If you are prompted to generate wrappers for the libraries that you selected, click “Yes”.

提交回复
热议问题