2011年12月9日

摘要: public void CreateExcel(DataTable source, string fileName, HttpContext context) { StringBuilder excelDoc = new StringBuilder(); const string startExcelXML = @"<xml version> <Workbook " + "xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\" " + " xmlns:o 阅读全文

posted @ 2011-12-09 14:51 Leon0812 阅读(195) 评论(0) 推荐(0) 编辑

摘要: public void CreateCSV(DataTable dt, string fileName, HttpContext context) { StringBuilder csvDoc = new StringBuilder(); string strTitle = string.Empty; for (int i = 0; i <= dt.Columns.Count - 1; i++) { strTitle += "\"" + dt.Columns[i]... 阅读全文

posted @ 2011-12-09 14:51 Leon0812 阅读(216) 评论(0) 推荐(0) 编辑


Copyright © 2024 Leon0812
Powered by .NET 8.0 on Kubernetes