views:

94

answers:

2

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
I'm using this unit, but this doesn't assign any event to objects.
Hamid
The events inside Delphi unit or QR Reports?
Mohammed Nasman
+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