为什么会报错:File not found: 'frxClass.dcu'

delphisanding1 2012-09-04 02:15:35
新建了1个工程,form上有4个组件:Adoquery1,frxReport1,frxDBDataset1,Button1

我想通过点击Button1按钮,来将frxReport1中的内容显示出来,在Button1的Button1Click事件中输入:frxReport1.ShowReport;但是我一点击Button1,却跳出如下错误:

[Fatal Error] Unit1.pas(7): File not found: 'frxClass.dcu'



这是什么情况?Adoquery1,frxReport1,frxDBDataset1都设置好了,数据库中的数据也都在frxReport1预览过了。为什么通过按钮来显示,却报错了。
...全文
997 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
kaikai_kk 2012-09-04
  • 打赏
  • 举报
回复
Tools->Environments Option->library->library Path
delphisanding1 2012-09-04
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 的回复:]
重新安装吧
安装fastreport后,添加路径到library中
[/Quote]


如何添加路径,是加在哪个菜单下?

是在project下的option,还是tool下的?
kaikai_kk 2012-09-04
  • 打赏
  • 举报
回复
重新安装吧
安装fastreport后,添加路径到library中
delphisanding1 2012-09-04
  • 打赏
  • 举报
回复
网上下了一个frxclass.dcu文件,放到fastreport 4 的安装目录下,运行delphi的工程文件,报错:

显示“[Fatal Error] Unit1.pas(7): Read error on 'C:\Program Files\FastReports\FastReport 4\LibD7\frxClass.dcu'”
delphisanding1 2012-09-04
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 的回复:]
引用 2 楼 的回复:
引用 1 楼 的回复:
在你的本机找到'frxClass.dcu'
并在delphi中加载它的路径。。


frxClass.dcu要如何找?整个硬盘搜索?

另外,在delphi中如何加载?


dcu 的文件应该有的吧,没有应该是你的控件都没有装完。

加载路径像你前面说的那样。。
[/Quote]

应该是没装完整,上次装的时候好像有报错了。

我得装什么版本的好呢?
yuwenfeng0814 2012-09-04
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
引用 1 楼 的回复:
在你的本机找到'frxClass.dcu'
并在delphi中加载它的路径。。


frxClass.dcu要如何找?整个硬盘搜索?

另外,在delphi中如何加载?
[/Quote]

dcu 的文件应该有的吧,没有应该是你的控件都没有装完。

加载路径像你前面说的那样。。
delphisanding1 2012-09-04
  • 打赏
  • 举报
回复
Tools-> Environments Option -> library-> Path的路径是下面这样的:

$(DELPHI)\Lib;$(DELPHI)\Bin;$(DELPHI)\Imports;$(DELPHI)\Projects\Bpl;$(DELPHI)\Rave5\Lib;C:\Program Files\FastReports\FastReport 4\LibD7

而C:\Program Files\FastReports\FastReport 4\LibD7就是我安装fastreport4的路径。
  • 打赏
  • 举报
回复
网上去下载一个对应你delphi版本的frxClass.dcu吧
delphisanding1 2012-09-04
  • 打赏
  • 举报
回复
我已经把fastreport的安装路径在Project->Opetions->Directories/Conditionals->Search Path:设置过了,为什么还是一样的错误跳出来?
delphisanding1 2012-09-04
  • 打赏
  • 举报
回复
只有在fastreport的安装目录下找到了frxClass.res


没有找到frxClass.dcu
delphisanding1 2012-09-04
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
在你的本机找到'frxClass.dcu'
并在delphi中加载它的路径。。
[/Quote]

frxClass.dcu要如何找?整个硬盘搜索?

另外,在delphi中如何加载?
yuwenfeng0814 2012-09-04
  • 打赏
  • 举报
回复
在你的本机找到'frxClass.dcu'
并在delphi中加载它的路径。。

2,497

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧