摘要: 1.首先在项目中添加引用2.添加该COM组件后会再文件夹中出现一个Interop.Excel.dll的文件,将之前的Microsoft Excel 11.0 Object Library组件删除,添加新的Interop.Excel.dll的引用。然后添加excel的.net组件3.现在开始贴代码:导出excel文件的样式设计、保存、释放资源都存放在一个Share.cs的类文件中using System.IO;using System.Runtime.InteropServices;using Microsoft.Office.Interop.Excel;#region 设置excel样式并保存 阅读全文
posted @ 2013-12-21 09:43 .Justme 阅读(3974) 评论(0) 推荐(0) 编辑