我正在使用Oledb驱动程序从excel加载数据,以便使用datargids在tabcontrol中显示
foreach (string str in sheets)
{
string query = "SELECT * FROM [" + str + "]";
adapter.SelectCommand.CommandText = query;
adapter.Fill(ds,str);
}
在图纸名称以数字开头之前,它工作正常。我有一个excel文件,其工作表名称为
26203 REV C (EVK)
The Microsoft Jet database engine could not find the object ''26203 REV C [EVK]$'_'. Make sure the object exists and that you spell its name and the path name correctly.
有什么办法可以解决这个问题。我无法控制图纸名称。