将 QuickReport 转换为 FastReport
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 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.
Fast Report 有
ConverterQR2FR.pas
单元,您可以使用它来将 QR 报告转换为 FR,您可以将其用作:Fast Report has
ConverterQR2FR.pas
unit, which you could use to convert QR reports to FR, you can use it as :