C++ Builder 安装FastReport 4的方法

以前曾经安装过FastReport数据报表控件,觉得功能不错。现在发现网上已经有4以上的版本下载使用。于是从CCRUN上下载了FastReport V4.7.9进行安装,在下载后发现安装复杂了些,比FastReprot 2.41的版本比较没有自动安装,需要手动编译各部件。于是将安装心得记录给有需要的朋友参考。

一、 卸载旧版本

如果以前未安装过FastReport可以直接跳到下一步。 如果安装过以前版本的FastReport在工具栏上会看到FastReport和FR Tools两个选项栏。首先我们要把先前的版本卸载。

打开BCB的菜单"Project"->Option。然后在Packages的标签栏项目下,找到FastReport的所有部件,如下图的FastReport2.4 ADO Components 和 FastReport 2.4 Components。分别点击它们然后点地击“Remove”按钮逐个删除。卸载完成后返回,工具栏上面的FastReport和FR Tools两个选项栏也同时被清除。

二、设定安装目录

选择一个目录进行安装,现在以D:\cb6_control目录为例,将下载的FastReport V4.7.9解压到此目录。

三、生成安装链接文件

1. 执行recomplie文件,执行文件前请先将BCB6退出。否则程序文件出现提示并不能继续安装。

2. 程序运行后出现提示,主要是目录读写权限、C++Builder是否运行、是否有其它程序运行FastReport的部件包,点击“Continue”。

3. 进入到程序界面,选择相应的参数项。

第一项“1. Select the complier”选择程序,选择C++Builer 6。

第二项“2. Select the FastReport version”选择安装FastReport的版本,选择Enterprise。

第三项“3. Select the TeeChart version”,如果不知道的情况下请选择TeeChartStd。

第四项“4.What you want to do”,把“Choose Language to”的选择改为“Chinese”中文版。

完成后点击“Complier”,然后程序将FastReport安装所需要的文件生成到"LibBCB6"目录下。

3. 进入安装目录的\Res\Chinese,执行mk.bat文件生成中文菜单XML文件。并将文件复制到安装目录下的Source目录里面。注意一定要执行这个步聚,否则安装后的FastReport菜单的中文为乱码。

四、编译部件

1. 将刚才生成的LibBCB6的所有文件复制到Source目录下。

2.启动BCB。

3.将Source目录下的文件frx.inc复制到FastQB目录下。

4.编译基本部件,用BCB打开及编译以下部件。

打开FastQB目录下的fqb60.bpk,然后Complie.
打开FastScript目录下的fs6.bpk,然后Complie,编译完成后Install安装.
打开FastScript目录下的fsDB6.bpk,然后Complie,编译完成后Install安装..

打开FastScript目录下的FsADO6.bpk,然后Complie,编译完成后Install安装.

打开FastScript目录下的FsBDE6.bpk,然后Complie,编译完成后Install安装.

打开FastScript目录下的fsTee6.bpk,然后Complie,编译完成后Install安装.


5.安装控件。

将LibD10目录下的所有pas文件复制到Source目录。

将Source目录下的所有pas文件复制到C++Builder安装目录的Lib\Release目录里面。

将FastScript目录下的所有pas文件复制到C++Builder安装目录的Lib\Release目录里面。

1) 用BCB打开source目录下的frx6.bpk,然后Complie,编译完成后Install安装。

2) 用BCB打开source目录下的frxDB6.bpk,然后Complie,编译完成后Install安装。

3) 用BCB打开source\ExportPack目录下的frex6.bpk,然后Complie,编译完成后Install安装。

4) 用BCB打开source\Ado目录下的frxADO6.bpk,然后Complie,编译完成后Install安装。

5 用BCB打开source\BDE目录下的frxBDE6.bpk,然后Complie,编译完成后Install安装。(可选安装)

6) 用BCB打开source\DBX目录下的frxDBX6.bpk,然后Complie,编译完成后Install安装。(可选安装)

7) 用BCB打开source目录下的frxTee6.bpk,然后Complie,编译完成后Install安装。(Chart,可选安装

6.完成以上安装后,BCB的工具栏出现FastReport 4.0 和FR4 tools的标签栏。

五、指定头文件和链接库的目录

1. 点击BCB菜单“Project”->“Options”,选择“Directories/Conditionals”的标签栏。

2. 点击“Include Path”的目录选择按钮“...”,弹出界面后点击“...”选择头文件的目录,即Source目录,本例的路径为“D:\cb6_control\gastReport.v4.7.9\Source”,然后点击“Add”按钮。

3. 按照同样的方法将“Source”目录添加到“Libary Path”链接库选项。

4.点击选择左下角的Default,然后点击“OK”。

5.重新启动BCB,FastReport4正式安装完毕。

安装测试环境:WinXP+BCB6+FastReport4.7.9。


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/JacksonLiang/archive/2008/11/13/3289563.aspx

FastReport.v4.9.81 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版 delphi2010中文完美支持。 D2010安装必读 delphi2010使用者安装时,请将res\frccD14.exe更名名为frcc.exe frccD14.exe 是专门的delphi2010编码器。其他delphi版本,请使用frcc.exe FASTREPORT® 4.9 VCL - report generator for Delphi CURRENT VERSION Build: 4.9.81 Date: 05/31/10 FastReport®4 VCL is an add-on component that allows your application to generate reports quickly and efficiently. FastReport® provides all the necessary tools to develop reports, including a visual report designer, a reporting core, and a preview window. It can be used in the CodeGear (exBorland) Delphi 4-2010, CodeGear C++Builder 6-2010 and CodeGear RAD Studio environments What's new in the FastReport 4 Report Designer: new XP-style interface the "Data" tab with all report datasets ability to draw diagrams in the "Data" tab code completion (Ctrl+Space) breakpoints watches report templates local guidelines (appears when you move or resize an object) ability to work in non-modal mode, mdi child mode Report Preview: thumbnails Print: split a big page to several small pages print several small pages on one big print a page on a specified sheet (with scale) duplex handling from print dialogue print copy name on each printed copy (for example, "First copy", "Second copy") Report Core: "endless page" mode images handling, increased speed the "Reset page numbers" mode for groups reports crypting (Rijndael algorithm) report inheritance (both file-based and dfm-based) drill-down groups frxGlobalVariables object "cross-tab" object enhancements: improved cells appearance cross elements visible in the designer fill corner (ShowCorner property) side-by-side crosstabs (NextCross property) join cells with the same value (JoinEqualCells property) join the same string values in a cell (AllowDuplicates property) ability to put an external object inside cross-tab AddWidth, AddHeight properties to increase width&height of the cell AutoSize property, abilit
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值