LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: marcelo on January 16, 2020, 09:52:13 PM

Title: LimeReport without Visual elements
Post by: marcelo on January 16, 2020, 09:52:13 PM
It's possible use lime report without visual elements?
If is possible, how i do it? (for example on a CLI aplication)

Regards
Title: Re: LimeReport without Visual elements
Post by: Arin Alex on January 17, 2020, 05:50:20 PM
Hi!
Yes, You can use limereport in the console application.
You can take a look at the console subproject to see how to implement it.
Title: Re: LimeReport without Visual elements
Post by: marcelo on January 17, 2020, 08:02:56 PM
I'm using the wt framework (https://www.webtoolkit.eu/wt) with qt to build a web application that generates reports (just generates a report trough a template, not edit it).
I'm using wt to build the gui, and qt to deal with data processing, so i don't need qt gui components.

I compiled limereport with these parameters, in order to avoid graphical components:
Code: [Select]
CONFIG += no_embedded_designer
CONFIG += no_formdesigner


But my application is crashing on lrpagedesignintf.cpp, on PageDesignIntf constructor, whey you initialize QGraphicsScene, on: (1   std::__atomic_base<int>::load       atomic_base.h), when i call the function loadfromstring, from ReportEngine class.

There is some parameter that i missed, in order to avoid graphical components or there is other problem?

regards

Title: Re: LimeReport without Visual elements
Post by: Arin Alex on January 17, 2020, 09:46:31 PM
O, I see.
Limereport using QGraphicsScene for rendering reports.
And QGraphicsScene needs QWidgets.
I’m afraid that in your case LimeReport will not be useful.
Title: Re: LimeReport without Visual elements
Post by: marcelo on January 20, 2020, 03:30:07 PM
Thanks