how connect excel 2007 for delphi7 [closed]

China☆狼群 提交于 2020-01-25 09:17:07

问题


I can connect with paradox base, oracle etc. Now I want to work with excel how can I do it ?


回答1:


With ADO, you can set the connectionstring like this:

ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyWorkBooks\myDataBook.xls;Extended Properties=Excel 8.0;';

http://delphi.about.com/od/database/l/aa090903a.htm



来源:https://stackoverflow.com/questions/4957414/how-connect-excel-2007-for-delphi7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!