摘要: using System;using System.Collections.Generic;using System.Text;using System.Data.OleDb;using System.Data.SqlClient;using System.Data;using System.Windows.Forms;using System.Data.Odbc;namespace QZMDB.Function{ /// <summary> /// Excel文件的读取 /// </summary> public class ExcelLoadFunction { p 阅读全文
posted @ 2011-07-28 16:13 笨笨鱼~ 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 由于项目需要,以前是做b/s开发的先做c/s开发.其中就有Excel导出模块.在往上找了很多资料都是挺凌乱的我整理了一下,在此分享.(有些代码片段来自他人,在此感谢)View Code public static bool haha(DataSet ds, string filenames) { try { string FileName = filenames;// "d:\\abc.xls"; DataTable dt = ds.Tables[0]; FileStream objFileStream; StreamWriter objStreamWriter; stri 阅读全文
posted @ 2011-07-28 16:07 笨笨鱼~ 阅读(555) 评论(0) 推荐(1) 编辑