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 阅读(201) 评论(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 阅读(223) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3