在64位下excel导入
//string ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+source+";Extended Properties=Excel 8.0";
要改为 上面为原来的,下面为修改后的
string ConnStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + source + ";Extended Properties='Excel 12.0;HDR=YES;IMEX=1;'";