How to reference Microsoft.Office.Interop.Excel dll?

前端 未结 6 1012
小鲜肉
小鲜肉 2020-11-27 15:56

I had developed a system that deals with excel sheets in 2006 using MS VS 2005. Now, I can not use the same reference with MS VS 2012.

var app = new Microso         


        
6条回答
  •  情话喂你
    2020-11-27 16:04

    Building off of Mulfix's answer, if you have Visual Studio Community 2015, try Add Reference... -> COM -> Type Libraries -> 'Microsoft Excel 15.0 Object Library'.

提交回复
热议问题