asp.net读取Excel文件,连接有两个版本.xls与.xlsx,参考:

Extension ConnectionString
xls Provider=Microsoft.Jet.OLEDB.4.0;Data Source=[ExcelFilePath];Extended Properties=”Excel 8.0;HDR=YES;IMEX=1”
xlsx Provider=Microsoft.ACE.OLEDB.12.0;Data Source=[ExcelFilePath];Extended Properties=Excel 12.0 Xml;HDR=YES;IMEX=1

 

实例参考视频:

http://www.cnblogs.com/insus/articles/1425052.html

 

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-10-20
  • 2021-06-16
  • 2021-05-28
  • 2021-11-11
  • 2021-12-06
猜你喜欢
  • 2021-08-31
  • 2022-12-23
  • 2021-10-10
  • 2021-10-28
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案