LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: mrdebug on April 30, 2017, 11:32:17 PM

Title: [solved] LimeReport in a console application
Post by: mrdebug on April 30, 2017, 11:32:17 PM
I need to embed Lime Report in a console application that works as Windows or Linux service.
The compilation ends without any problem but, when the service tryes to print something it will go to crash.
I suspect that LimeReport does not work in a console application. Is it true or there is another way to print as console?



Many thanks.
Title: Re: LimeReport in a console application
Post by: Arin Alex on May 01, 2017, 08:35:01 PM
Yes i see it. I'll fix it as soon as possible.
Title: Re: LimeReport in a console application
Post by: mrdebug on May 01, 2017, 10:05:15 PM
Many many thanks!
Title: Re: LimeReport in a console application
Post by: Arin Alex on May 16, 2017, 06:25:39 PM
I have investigated the problem and found if you want to use LimeReport in the console application you have to use QApplication instead QCoreApllication
Title: Re: LimeReport in a console application
Post by: mrdebug on May 16, 2017, 08:24:22 PM
I confirm that works in a console application but not in a Windows service using qtservice.
Have you got a suggestion for me?
Title: Re: LimeReport in a console application
Post by: mrdebug on May 17, 2017, 11:48:44 AM
Solved by paching the file qtservice_win.cpp