Delphi XE7 设置FastReport打印预览/打印界面为中文

FastReport语言设置
本文介绍如何使用FastReport组件轻松地更改打印预览/打印界面的语言设置。通过简单的步骤即可完成中文资源文件的创建与加载。

很久写代码了,最近因为工作原因需要写一个小软件,用到了FastReport,发现它采用了新的方法方便程序员更改打印预览/打印界面的语言设置.非常简单:

首先,找到FastReport安装目录:Program Files (x86)\FastReports\Res\Chinese;

执行mkall.bat文件会生成一个Chinese.frc的文件,

将这个文件拷贝到你项目中,

然后引用单元:uses frxRes;

在打印预览/打印前调用:frxResources.LoadFromFile(ExtractFilePath(Application.ExeName)+'chinese.frc');

就可以了,是不是极为便捷...........

转载于:https://www.cnblogs.com/wuhenSoft/p/4444056.html

FastReport 6.6.17 Enterprise Source Code for Delphi7 and Delphi27 (10.4 Sydney) FastReport Package Simplification Management Toolkit by xander.xiao@gmail.com, version 2.0, 2020-5-27 What is Package simplification management ? As Fastreport include a stack of design package files, it is boring to install these packages manually, we need a easy way to work out it, here is my solution which may apply to any package management besides Fastreport: My solution, in a brief, copy all files of all packages in one folder which is named by a Environment varible %ProjectHome% which has following structure: %ProjectHome%\Bin for all BPL files of all packages, runtime and design time files %ProjectHome%\LibD7 for Delphi 7 Compiled unit files and resource files (dcu,dcp,dfm,res etc.) %ProjectHome%\LibD26 for Delphi XE 10 Rio Compiled unit files and resource files (dcu,dcp,dfm,res etc.) Each Delphi version related folder may have platform (Win32,Win64 etc.) and configuration (release or debug) specified subfolders. after that, double click REG files to import Delphi known design time packages. This toolkit include two sets: 1. Resource translation, this function is provided by res\FR4Trans.exe, res\frccEx.exe and res\Chinese\@Deploy.bat, besides Chinese it can work with any language 2. Package simplification management, it is functioned by @DelUnUsedFiles.bat,@Deploy.bat,@BuildAllPackages.bat and REG files in quickInstall folder All source code included, you can modified freely. Usage: step0: Make a backup of your fastreport source code, then copy all files in this folder to FastReport home folder. Step1: Execute recompile.exe to generate specified version related folder and files (Recompile all package first, then Change Language to Chinese or othor one). step2: Execute @DelUnUsedFiles.bat to delete unused files in the folder which step1 generated. step3: Execute @Deploy.bat to deploy all files to the project home folder. step4: Double Click reg files in quickInstall folder to install design time BPLs in Delphi IDE, here assume that your ProjectHome is D:\Projects, you may change it. step5: optional, Instead of "recompile.exe-Recompile all package", Execute customized @BuildAllPackages.bat to recompile all package files if you modified any file in the folder which step1 generated. Step6: optional, Instead of "recompile.exe-Change Language to", Execute res\chinese\@deploy.bat if you need very formated Chinese resource code files, before this, you can Execute res\FR4Trans.exe to do translating in your prefered way, you may copy res\chinese\@deploy.bat to othor language folder.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值