Delphi 7: Connect to Excel 2003 Files Using Connection String
The connection string to load an Excel 2003 file in Delphi 7 is:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\YourFilePath\YourExcelFile.xls;Extended Properties='Excel 8.0;HDR=Yes;IMEX=1';
Make sure to replace 'YourFilePath' and 'YourExcelFile' with the actual file path and name of your Excel file.
原文地址: https://www.cveoy.top/t/topic/kWzj 著作权归作者所有。请勿转载和采集!