SOLVED :LazReport - console application lazarus / 16-Databases ---------------------------------------------------------------------- sajgon30 · 2019-02-28 10:06 Has anyone succeeded in running LazReport in a console application? I dynamically create all the necessary elements, load a report from the lrf file and try to export the report to PDF or print it - but it always returns an empty report. ---------------------------------------------------------------------- howardpc · 2019-02-28 11:02 You could consider using fpReport, which is not inextricably bound to a GUI. ---------------------------------------------------------------------- sajgon30 · 2019-02-28 12:43 Wiki: As of 20th January 2019 FPReport does not compile out of the box in 64 bit Lazarus (Windows version at least). It should compile flawlessly in 32 bit Lazarus, though (see also "I did not find FPReport in my Lazarus dir"). It should compile ???? No way - missing file fpreport................. I have a desktop application with Lazreport reports - I want to move reports to the server part. Changing the report generator engine is a difficult task. ---------------------------------------------------------------------- Thaddy · 2019-02-28 13:45 Quote from: sajgon30 on February 28, 2019, 01:43:20 pmWiki: As of 20th January 2019 FPReport does not compile Looks more like an idiot that didn't get a "right" answer and spreads rumors through the wiki. ---------------------------------------------------------------------- af0815 · 2019-02-28 14:23 Quote from: sajgon30 on February 28, 2019, 01:43:20 pmI have a desktop application with Lazreport reports - I want to move reports to the server part. Changing the report generator engine is a difficult task. LazReport have IMHO no serverpart. It is a GUI based Reportengine. You can look for freereport 3, LazReport was/is a port of it. --  I have understand, this bindings to GUI was one of the goals to bring up fpreport, without any binding to visual components. BTW: You cannot find the fpreport in Lazarus, because there is only a wrapper for fpreport from fpc. ---------------------------------------------------------------------- cappe · 2019-02-28 14:45 Quote from: howardpc on February 28, 2019, 12:02:26 pmYou could consider using fpReport, which is not inextricably bound to a GUI. Why is not installed by default as lazreport? ---------------------------------------------------------------------- sajgon30 · 2019-02-28 15:43 Problem solved. Add the Data Module to the console project. Place all components like ZConnection, TfrReport, Query  on this module and init Data Module by DM := TDM.Create(nil);  in DoRun procedure. Make PrepareReport and Export for example to PDF. LazReport is working in console app without GUI. ---------------------------------------------------------------------- tecnoxarxa · 2019-04-08 00:13 Are you talking about windows? Can you try it on Linux system without X server? It’s working too? ---------------------------------------------------------------------- dsiders · 2019-04-08 06:36 Quote from: cappe on February 28, 2019, 03:45:51 pmQuote from: howardpc on February 28, 2019, 12:02:26 pmYou could consider using fpReport, which is not inextricably bound to a GUI. Why is not installed by default as lazreport? For starters it's a FPC project and not a Lazarus one. Lazarus still ships with FPC 3.0.4. I don't think it was ready for 3.0.4. ---------------------------------------------------------------------- cappe · 2019-04-08 14:38 Quote from: tecnoxarxa on April 08, 2019, 02:13:15 amAre you talking about windows? Can you try it on Linux system without X server? It’s working too? This is interesting