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

前端 未结 6 1014
小鲜肉
小鲜肉 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:18

    If you have VS 2013 Express and you cant find Microsoft.Office namespace, try this ('Microsoft Excel 12.0 Object Library' if you want to use Office 2007)

    enter image description here

提交回复
热议问题