移交Excel导入数据格式异常取不到Excel单元数据问题处理

This commit is contained in:
2024-12-16 10:54:38 +08:00
parent 4c9bc80ca0
commit 277c616f1a
12 changed files with 24 additions and 12 deletions
@@ -102,7 +102,8 @@ namespace FineUIPro.Web.Transfer
oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;";
oleDBConnString += "Data Source=";
oleDBConnString += fileName;
oleDBConnString += ";Extended Properties=Excel 8.0;";
//oleDBConnString += ";Extended Properties=Excel 8.0;";
oleDBConnString += ";Extended Properties='Excel 8.0;HDR=Yes;IMEX=1;'";
OleDbConnection oleDBConn = null;
OleDbDataAdapter oleAdMaster = null;
DataTable m_tableName = new DataTable();