在vs的项目中找到添加引用

在C#中进行Excel操作需要using Excel = Microsoft.Office.Interop.Excel;

在COM中找到 Microsoft Excel x.0(版本号) Object Library

在C#中进行Excel操作需要using Excel = Microsoft.Office.Interop.Excel;

之后引用 using Excel = Microsoft.Office.Interop.Excel;

相关文章: