亲爱的
我有数据数据集,但我想转换为String数组。 这是我的代码,使用C# 我该如何解决?
OleDbConnection con = new OleDbConnection(
"provider=Microsoft.ACE.OLEDB.12.0;data source="
+ XLS_FILE_NAME_AND_PATH_HERE
+ ";Extended Properties=Excel 12.0;");
StringBuilder stbQuery = new StringBuilder();
stbQuery.Append("SELECT * FROM [" + SHEETNAME_HERE + "$1:1]");
OleDbDataAdapter adp = new OleDbDataAdapter(stbQuery.ToString(), con);`enter code here`
DataSet dsXLS = new DataSet();
adp.Fill(dsXLS);