C#中DataTable导出XLS
摘要:1 private void DataTableToExcel( DataTable table , string file ) 2 { 3 string title = ""; 4 5 using ( FileStream fs = new FileStream(file,FileMode.Ope
阅读全文
posted @
2022-12-14 10:35
湘灵
阅读(75)
推荐(0) 编辑
C#定时任务
摘要:1 /// <summary> 2 /// 耗时计数器 3 /// </summary> 4 public class ElapsedTimer 5 { 6 // 创建时默认为创建时间,这样不调用 Start 也可以 7 private DateTime _StartTime = DateTime.
阅读全文
posted @
2022-12-12 11:17
湘灵
阅读(2085)
推荐(0) 编辑