C#读取excel为什么从第二行开始?
stringexlPath=@System.Windows.Forms.Application.StartupPath+"\\表.xls";stringexlconnSt...
string exlPath = @System.Windows.Forms.Application.StartupPath + "\\表.xls";
string exlconnStr = "provider=microsoft.jet.oledb.4.0;data source=" + exlPath + ";extended properties='Excel 8.0;HDR=yes;IMEX=1'";
string exlselectStr = "select * from [Sheet1$]";
string defs = @System.Windows.Forms.Application.StartupPath + "\\表.xls";
默认是从从excel第二行开始读取?为什么?如何从第一行开始? 展开
string exlconnStr = "provider=microsoft.jet.oledb.4.0;data source=" + exlPath + ";extended properties='Excel 8.0;HDR=yes;IMEX=1'";
string exlselectStr = "select * from [Sheet1$]";
string defs = @System.Windows.Forms.Application.StartupPath + "\\表.xls";
默认是从从excel第二行开始读取?为什么?如何从第一行开始? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询