FastReport中国社区FastReport联系电话 联系电话:023-68661681

模板转换神器:FRConverter 1.0控制台—命令行批量转换QuickReport 9,ReportBuilder 19,Rave Reports到FastReport VCL 6

来源:   发布时间:2020-02-19   浏览:3209次

以前,有几篇有关将QuickReport 6ReportBuilder 19模板转换为*.fr3格式的文章。

从QuickReport 6迁移到FastReport VCL 6>>

从ReportBuilder 19迁移到FastReport VCL 6>>

不过技术人员发现这还是有些不方便的,需要花费更多的精力来创建项目并连接其他模块,并且在批量转换模板时会遇到困难。

于是,我们决定创建一个控制台实用程序,该实用程序将在FastReport VCL 6中结合三个转换器QuickReport 9,ReportBuilder 19,Rave Reports,并允许使用命令行进行模板的批量转换。

模板转换神器:FRConverter 1.0控制台—命令行批量转换QuickReport 9,ReportBuilder 19,Rave Reports到FastReport VCL 6

让我们看看如何使用控制台转换器。

要转换单个文件,请使用命令行移动到文件所在的文件夹,然后使用以下命令:

FRConverter.exe -f:QR MyReport.dfm MyReport.fr3
FRConverter.exe -f:RB TT.rtm TT.fr3

参数在这里:

-f:< type_Converter > - select type Converter
 
 < type_Converter >:
 QR- QuickReport (*.dfm and *.qr2)
 RB- ReportBuilder (*.rtm)
 RR- Rave Reports (*.rav)
MyReport.dfm – the name of the file in the current folder

MyReport.fr3 – the name with which the converted template will be saved

也可以使用“-split”选项

-split-拆分页面(仅QuickReport),如果您有多个TQuickRep对象,则FRConverter会将dfm拆分为多个模板,并将它们与这些对象的名称一起保存到当前目录中,还将保存包含这些页面的模板。

使用示例:

FRConverter.exe -f:QR -split MyReport.dfm MyReport.fr3 
 Result 3 or more files: MyReport.fr3,.fr3,.fr3 and etc.

要查看当前文件夹中所需格式的文件,可以使用以下参数:

-show < format_file > - displays allin the current directory
 
 < format_file > :
 *.dfm, *.qr2,*.rtm, *.rav and etc.
 

使用示例:

FRConverter.exe -show *.dfm
 

使用-h参数调用帮助。

FRConverter.exe -h

要转换批量转换,请使用命令行移动到模板所在的文件夹,然后使用以下命令:

 FRConverter.exe -f:QR *.dfm *.fr3
 

产品介绍 | 下载试用 | 优惠活动 | 在线客服

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:FastReport控件中文网 [https://www.fastreportcn.com/]
本文地址:https://www.fastreportcn.com/post/2702.html

相关产品: FastReport VCL,


联系我们
  • 重庆总部 023-68661681
购买
  • sales@evget.com
合作
  • business@evget.com


在线
客服
微信
QQ 电话
023-68661681
返回
顶部