摘要: 1.进行引用Microsoft.Office.Interop.Excel.dll和office.dll(但是在服务器上不行) public void GetDataToExcel() { //创建Excel对象 Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application(); excel.Application.Workbooks.Add(true); //设置Excel标题 excel.Caption = "用户列表"; //设置Exce 阅读全文
posted @ 2013-09-17 16:52 李翠华 阅读(233) 评论(0) 推荐(0) 编辑