I am Converting a QuickReport to a FastReport in Delphi source, I want to detrmine 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?
A:
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');
Mohammed Nasman
2010-07-07 06:44:54
I'm using this unit, but this doesn't assign any event to objects.
Hamid
2010-07-07 07:06:43
The events inside Delphi unit or QR Reports?
Mohammed Nasman
2010-07-07 08:45:54
+2
A:
In Quick Report 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 raisons you originally used those events: FastReport might have better ways of doing the same thing without coding.
Cosmin Prund
2010-07-07 09:48:36