Delphi Excel写入 ADOConnection
var
sFileName: string;
begin
sFileName := ExtractFilePath(Application.ExeName) + 'Book1.xls';
con1.Connected := False;
con1.ConnectionString:= 'Provider=Microsoft.Jet.OLEDB.4.0;Password="";Data Source=' + sFileName + ';Extended Properties=Excel 8.0;Persist Security Info=True';;
con1.Connected := true;
con1.Execute('create table Test(name varchar(20))');
con1.Execute('insert into Test values (''AName'')');
end;按上面的方式写入Excel。 Excel表格中的单元格都有撇号。。 怎么样才不会有撇号。。
...全文
相关推荐
在Delphi中使用ADO连接Excel
在Delphi中使用ADO连接Excel
基于Delphi的Excel与Oracle数据互转换技术.pdf
基于Delphi的Excel与Oracle数据互转换技术.pdf
Delphi控制Excel的重要属性和方法
本文讲述了利用Delphi编程语言设计应用程序,使其能够与Excel方便地进行数据导入导出,从而提供数据信息的深层利用
ADO读取EXCEL兼容07模式
通过ADO 快速打开EXCEL,兼容03与07二种模式。
Delphi使用AdoConnection连接Excel数据源
使用Delphi的TAdoConnection控件连接Excel文件,直接对Excel中的数据进行查询和分析。很方便 和 大家共享。


