将 QuickReport 转换为 FastReport

发布于 2024-09-08 10:23:38 字数 120 浏览 4 评论 0原文

我正在 Delphi 源代码中将 QuickReport 转换为 FastReport,我想确定分配给 QuickReport 对象的事件方法名称,并根据它为 FastReport 对象的同一事件分配一个方法。 我该怎么做呢?

I am Converting a QuickReport to a FastReport in Delphi source, I want to determine the event method name that assigned to a QuickReport object and according to it assign a method to the same event of the FastReport object.
How can I do it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风铃鹿 2024-09-15 10:23:38

在 QuickReport 中,您可以为 TQrLabel 等事件设置事件,这些事件存在于 Delphi 单元的代码中。使用 FastReport,您可以执行相同的操作,但事件位于 FastReport 报表中,而不是 Delphi 单元中(FastReport 包括 Pascal 脚本引擎)。因此,您可能需要手动将事件从设备复制到 FastReport 脚本。

由于这需要手动工作,您可能会重新考虑最初使用这些事件的原因:FastReport 可能有更好的方法无需编码即可完成相同的操作。

In QuickReport you were able to set events for things like TQrLabel, and those events lived in the Delphi unit's code. With FastReport you can do the same, but the event lives within the FastReport Report, not in the Delphi unit (FastReport includes an Pascal scripting engine). Because of this you'll probably need to copy your events by hand from the unit to the FastReport script.

Since this requires manual work, you might reconsider the reasons you originally used those events: FastReport might have better ways of doing the same thing without coding.

樱花细雨 2024-09-15 10:23:38

Fast Report 有 ConverterQR2FR.pas 单元,您可以使用它来将 QR 报告转换为 FR,您可以将其用作:

conv := TConverterQr2Fr.Create;
conv.Source := QuickRep1;
conv.Target := FReport;
conv.Convert;
FReport.SaveToFile('converted_fromQR.fr3');

Fast Report has ConverterQR2FR.pas unit, which you could use to convert QR reports to FR, you can use it as :

conv := TConverterQr2Fr.Create;
conv.Source := QuickRep1;
conv.Target := FReport;
conv.Convert;
FReport.SaveToFile('converted_fromQR.fr3');
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文