52ky 发表于 2022-5-2 12:57:13

DELPHI2009下编译提示“找不到”EXCEL_TLB”

这是由于未安装 Excel 组件造成的。 安装 Excel 组件的步骤如下:

1.新建Package项目

2.在Office安装目录下找到文件XL5CHS32.OLB

我的Office版本是2007,XL5CHS32.OLB文件所在路径是C:\Program Files\Microsoft Office\Office12

3、打开Component-Import Component,选择Import ActiveX Control,点击Next,点击Add按钮选择XL5CHS32.OLB文件,进入下一步,将上一步中的Unit文件添加到当前打包项目中。

4.安装Package项目

(This is because excel components are not installed. The steps to install excel components are as follows:
1. Create a new package project
2. Find the file xl5chs32 in the office installation directory OLB
My office version is 2007, xl5chs32 The path of the OLB file is C: \ program files \ Microsoft Office \ Office12
3. Open component import component, select import ActiveX control, click next, click add, and select xl5chs32 OLB file, go to the next step, and add the unit file in the previous step to the current packaging project.
4. Install package project
)



页: [1]
查看完整版本: DELPHI2009下编译提示“找不到”EXCEL_TLB”