Convert QuickReport to FastReport

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

+4
source share
2 answers

In QuickReport, you were able to set events for things like TQrLabel, and these events were used in the Delphi module code. With FastReport you can do the same, but the event lives in the FastReport report, and not in the Delphi block (FastReport includes the Pascal scripting mechanism). Because of this, you probably have to copy events manually from the device to the FastReport script.

Since this requires manual work, you can review the reasons why you used these events: FastReport may have better ways to do the same without coding.

+2
source

Fast Report has a ConverterQR2FR.pas block that you can 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'); 
+1
source

Source: https://habr.com/ru/post/1314916/


All Articles