摘要: 一 导入Excel:把excel 作为数据源。 //自定义个 数据源方法 private DataSet CreateDataSource() { string strCon; strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("../新建 Microsoft Excel 工作表.xls") + "; Extended Properties=Excel 8.0;";//指定数据源的虚拟路径 OleDbConnection olecon = 阅读全文
posted @ 2012-06-15 16:50 zyw19900901 阅读(184) 评论(0) 推荐(0) 编辑