Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting QuickReport To 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?

like image 668
Hamid Avatar asked Oct 15 '22 03:10

Hamid


2 Answers

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.

like image 174
Cosmin Prund Avatar answered Oct 18 '22 19:10

Cosmin Prund


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');
like image 34
Mohammed Nasman Avatar answered Oct 18 '22 19:10

Mohammed Nasman