C#中添加excel引用 项目--菜单 --- 添加引用 ---COM ---Microsoft Excel 11.0 Object Library --- 确定 然后就可以在源文件中添加Excel的引用了: using Excel;