The connection string to load an Excel 2010 file in Delphi 7 using ADO components is:

Provider=Microsoft.ACE.OLEDB.12.0;Data Source='';Extended Properties='Excel 12.0 Xml;HDR=YES';

Replace '' with the full path and file name of the Excel 2010 file you want to load. This connection string assumes that you have the Microsoft Access Database Engine 2010 Redistributable installed on your system. If you don't have it installed, you can download it from the Microsoft website.

Delphi 7: Load Excel 2010 File Using ADO Connection String

原文地址: https://www.cveoy.top/t/topic/kWzm 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录