在vs的项目中找到添加引用 在COM中找到 Microsoft Excel x.0(版本号) Object Library 之后引用 using Excel = Microsoft.Office.Interop.Excel;