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

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

    Instead of early binding the reference, there's an open source project called NetOffice that abstracts this from your project, making life much easier. That way you don't have to rely on your users having a specific version of Office installed.

    NetOffice Codeplex site.

提交回复
热议问题