随笔分类 -  Excel

C# NPOI 操作Excel helper
摘要:NPOI helper 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using NPOI.SS.UserModel; 6 using System.IO 阅读全文
posted @ 2018-11-14 15:02 苏上话 阅读(3371) 评论(0) 推荐(0)
C# 读取EXCEL数据
摘要:/// /// 读取EXCEL数据 /// /// /// public static System.Data.DataSet ExcelToDS(string Path) { s... 阅读全文
posted @ 2016-01-11 17:49 苏上话 阅读(2933) 评论(0) 推荐(0)
Js 导出Excel IE ActiveX控件
摘要:function ExportExcel() { var oXL = new ActiveXObject("Excel.Application"); //创建excel应用程序对象 var oWB = oXL.Workbooks.Add(); //创建工作簿 var oSheet = oWB.Act 阅读全文
posted @ 2014-11-21 16:27 苏上话 阅读(612) 评论(0) 推荐(0)
Excel Aspose.Cells 设置单元格格式 为数字
摘要:Workbook workbook = new Workbook(); //工作簿 Worksheet sheet = workbook.Worksheets[0]; //工作表 sheet.Cells["A1"].PutValue("value", true); sheet.Cells["A1"] 阅读全文
posted @ 2014-11-07 10:23 苏上话 阅读(2380) 评论(1) 推荐(0)
把EXCEL列号数字变成字母
摘要:把Excel 列号数字变成字母 private static string ToName(int index) { if (index chars = new List(); do { ... 阅读全文
posted @ 2014-11-07 10:18 苏上话 阅读(1918) 评论(0) 推荐(0)
C# 导出Excel Aspose.Cells
摘要:public void ExportExcel() { Workbook workbook = new Workbook(); //工作簿 workbook.Worksheets.Clear(); workbook.Worksheets.Add("New Worksheet1");//New Work... 阅读全文
posted @ 2014-10-31 16:29 苏上话 阅读(851) 评论(0) 推荐(0)