我们一般得到的fastreport是有源码的,所以只要编译就可以得到bpl,不用去找、去拷了。下面转的方法是绝对可行的!
一、设置 TeeChart 的版本:
1. 打开文件"Source/frxReg.inc",找到下面相关行,把你系统 TeeChart 版本行注释去掉;
({$DEFINE TeeChart45}, {$DEFINE TeeChart55}, {$DEFINE TeeChart6}, {$DEFINE TeeChart7})
2. 打开文件"FastScript/fs_iReg.inc",找到下面相关行,把你系统 TeeChart 版本行注释去掉;
({$DEFINE TeeChart45}, {$DEFINE TeeChart55}, {$DEFINE TeeChart6}, {$DEFINE TeeChart7})
二、加入路径(Tools->Environment Options中Library页中的Library Path项):
Source/
FastScript/
Source/ExportPack/
Source/BDE/
Source/ADO/
Source/IBX/
Source/DBX/
三、编译运行时包('*' = Delphi version)(点击“Compile”按钮):
FastScript/fs*.dpk - FastScript, main package
FastScript/fsDB*.dpk - FastScript, DB classes and controls
FastScript/fsBDE*.dpk - FastScript, BDE components
FastScript/fsADO*.dpk - FastScript, ADO components
FastScript/fsIBX*.dpk - FastScript, IBX components
Source/frx*.dpk - FastReport, main package
Source/frxDB*.dpk - FastReport, TDataSet wrapper (TfrxDBDataSet)
Source/frxIBO*.dpk - FastReport, IB_Objects wrapper (TfrxIBODataSet) (编译出错)
Source/BDE/frxBDE*.dpk - FastReport, end-user BDE components
Source/ADO/frxADO*.dpk - FastReport, end-user ADO components
Source/IBX/frxIBX*.dpk - FastReport, end-user IBX components
Source/DBX/frxDBX*.dpk - FastReport, end-user DBX components
Source/ExportPack/frxe*.dpk - FastReport, export filters
三、安装设计时包('*' = Delphi version)(点击“Install”按钮):
FastScript/dclfs*.dpk
FastScript/dclfsDB*.dpk
FastScript/dclfsBDE*.dpk
FastScript/dclfsADO*.dpk
FastScript/dclfsIBX*.dpk
Source/dclfrx*.dpk
Source/dclfrxDB*.dpk
Source/dclfrxIBO*.dpk (安装出错)
Source/BDE/dclfrxBDE*.dpk
Source/ADO/dclfrxADO*.dpk
Source/IBX/dclfrxIBX*.dpk
Source/DBX/dclfrxDBX*.dpk
Source/ExportPack/dclfrxe*.dpk
四、打开DEMO编译测试安装是否成功;
五、所做的改进:
1:导出PDF文件中文乱码问题,使用时请将报表中可视内容的字符集CHINESE_GB2312
2:部分提示未汉化问题;