Asp.net/c#+OleDb操作excel文件
摘要:
、环境配置:加入using System.OleDb 2、编写连接与操作excel文件的通用函数protected void DoOleSql(string sql, string database) { OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("\\") + database + "; Extended Proper 阅读全文
posted @ 2011-07-20 14:42 lwt2005qq 阅读(273) 评论(0) 推荐(0) 编辑