C#连接Excel示例代码和驱动
摘要:
代码如下: string fileExt = Path.GetExtension(excelPath); string conn = ""; if (fileExt == ".xls") { conn = "Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source =" + excelPath + ";Extended Properties='Excel 8.0;HDR=Yes;IMEX=1'"; } ... 阅读全文
posted @ 2014-02-23 20:13 柔城 阅读(1550) 评论(0) 推荐(0) 编辑