Breaking News
Quick Report Delphi 2010 Tutorial
пятница 29 марта admin 23
Set of components and controls that enable reports to be designed and previewed in the Delphi and C++ Builder IDEs. > Quickreport Overview. User report design.
Hello all In the app I am porting from Delphi, there is heavy use of QuickReport; I know that there are LazReport and FortesReport available for lazarus. My problem is that I have never used any reporting packages, and know nothing about the compatibility or otherwise of these two packages with QuickReport. Is there any documentation showing equivalence of widgets/methods etc? Or anybody who can give me help? I cant use QuickReport as I am working in Linux and want it to all be open source. Free download game battle city tank 1990 for pc. Mandriva 2011, GTK2 Regards Tim.
I decide to help you a bit. In attachment you can find a small simple project for converting *.dfm and *.pas source files for several purposes. This project is created long before Lazarus include converting module from Delphi units. I use this application to convert database components from one to another for example: Devarts MyDAC to Zeos and vice versa. When I converted my first serious project, an ERP application, I'm realized that LazReport is largely not cowered my needs and is much different in philosophy then QuickReport, and have a tonns of this reports. I need to find something else or I can go farther.
Fortunately there are Fortes4Lazarus witch is so good and so close in philosophy to QuickReport and my needs. My steps to convert QuickReport to FortesReport: Thees steps begins before converting anything with Lazarus, i mean with Delphi converter. Strongly recommend to backup all files on your project! Check that is *.dfm of QuichReport file are in txt format (not in binary format) 3. Compile and run attached application, chose your application folder (F button) and one PAS file, then Open.
(in right side in CheckListBox should bee listed *.dfm and *.pas files of your project) 4. Open substitution file: QuickRep_FortesRep.hdf and below QuickRep_FortesRep.hpa (L button) (you will see something like: QuickRep->RLReport etc. Witch mean QuickRep word will bee substituted to RLReport word (-> is substitution sign or separator)) 5. Check all *.dfm and *.pas files width green round tick button (on right side) 6. Click button E to execute substitutions for *.dfm (on left side) and do it below again for *.pas files. All files are backuped: *.pas as *.opa and *.dfm as *.odf After this steps you can convert project with Lazarus->Tools->Convert Delphi project to Lazarus project. Known issues: 1.
All font definitions are deleted 2. All borders-frames definitions are deleted 3.
RLSubDetail bands are not correctly converted, needs manually correct (different then QuickReport) 4. RLSysteminfo (QRSysData) have to check 5. Composit report is totally different, need rewrite So, it is far from perfection but I save hours and hours of work. On the end I like to thanks to developers for grate work of Fortes4Lazarus, it is powerful report generator, with big potential, needs to fix some bugs but already is more then usable on my projects!
(sorry for my English, I hope you understand what I mean an find this information useful! ) Regards, Patyi. Developers thus came from Delphi and using QuickReport as report generator should bee familiar 90% with Fortes4Lazarus! Major differences are on SubDetail implementation (Luiz point to the link where can you see how to.), and differences with Composit reports witch is by the way much easier then in QuickReport, just create reports as stand alone reports, and in first report (master) set property NextReport with next report name and so on. Minor differences is that the report components has borders instead of frames etc. Fortes4Lazarus has many small betterment - advantages towards QuickRep for example: - FRSystemInfo.Text:= 'Page: # of #'; Info:= itPagePreview; => printing: Page: 1 of 12 - RLDBResut:= 'Sum of the value: # in USD'; DataFormula:= 'SUM(quantity*price)'; => printing: Sum of the value: 123.125,52 in USD - You can use OnPrint, BeforPrint, AfterPrint.
Methods to implement anything you want like in normal Lazarus form and components. You are free to explore abilities of this grate report generator, and will bee more and more surprised and satisfied with results. Fcl-report is excellent (and included in the distribution), especially in the upcoming fpc 3.2.0. I prefer it over other solutions, but Fortes report is a good solution too. The reason I prefer fpc-report is that it is highly advanced, more advanced than Fortes report, easy to use and recently written from the ground up in FreePascal.