string ConnectionStringFormat2007 = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + strDSPath + ";Extended Properties=/"Excel 12.0 Xml;HDR=YES/"";
string ConnectionStringFormat2003 = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + strDSPath + ";Extended Properties=Excel 8.0;";
本文提供了两种不同版本Excel文件的数据源连接字符串配置方法,包括Excel 2007及更高版本和Excel 2003版。这些连接字符串适用于通过编程方式访问Excel文件中的数据。

1712

被折叠的 条评论
为什么被折叠?



