首页 > Web开发 > 详细

aspx页面,取得Excel某列不同类型的数据为空

时间:2017-09-25 10:53:39      阅读:209      评论:0      收藏:0      [点我收藏+]

 

红色部分需要加上,

string connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Jet OLEDB:Engine Type=35;Extended Properties=‘Excel 8.0;HDR=YES;IMEX=1‘", excelFilename);

这样是错误的:

   string connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Jet OLEDB:Engine Type=35;Extended Properties=Excel 8.0;Persist Security Info=False", excelFilename);

 

aspx页面,取得Excel某列不同类型的数据为空

原文:http://www.cnblogs.com/hongmaju/p/7590524.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!