摘要:
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
秦岭深处写代码
阅读(479)
评论(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
秦岭深处写代码
阅读(571)
评论(0)
推荐(1)

浙公网安备 33010602011771号