strConn:='Provider=Microsoft.Jet.OLEDB.4.0;' +
'Data Source=c:=test.xls;' +
'Persist Security Info=False;'+
'Extended Properties=Excel 8.0;'; AdoConnection1.Connected:=False;
AdoConnection1.ConnectionString:=strConn;
try
AdoConnection1.Open;
AdoConnection1.GetTableNames(ComboBox1.Items);
except
raise;
end;
--------------
在AdoConnection1.GetTableNames(ComboBox1.Items);时报错,为什么?
'Data Source=c:=test.xls;' +
'Persist Security Info=False;'+
'Extended Properties=Excel 8.0;'; AdoConnection1.Connected:=False;
AdoConnection1.ConnectionString:=strConn;
try
AdoConnection1.Open;
AdoConnection1.GetTableNames(ComboBox1.Items);
except
raise;
end;
--------------
在AdoConnection1.GetTableNames(ComboBox1.Items);时报错,为什么?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货