myDa.Fill(myDs); 无效的参数量

报错无效的参数量
string mystring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='";
mystring += "';User ID=admin;Password=;Extended properties='Excel 8.0;IMEX=1;HDR=NO;'";
OleDbConnection cnnxls = new OleDbConnection(mystring);
OleDbDataAdapter myDa = new OleDbDataAdapter("Select * from [Sheet1$]", cnnxls);
DataSet myDs = new DataSet();
myDa.Fill(myDs);

string mystring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" + 你的excel的路径和文件名;
另外,这个代码只能打开excel 97格式的文档,不能打开excel 2000 xp 2003 2007 2010 2013 2016 2019的
要读取excel高版本,可以用npoi