Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [solved] LimeReport in a console application  (Read 4287 times)

mrdebug

  • Newbie
  • *
  • Posts: 14
    • View Profile
[solved] LimeReport in a console application
« 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.
« Last Edit: May 17, 2017, 11:48:57 am by mrdebug »

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: LimeReport in a console application
« Reply #1 on: May 01, 2017, 08:35:01 pm »
Yes i see it. I'll fix it as soon as possible.

mrdebug

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: LimeReport in a console application
« Reply #2 on: May 01, 2017, 10:05:15 pm »
Many many thanks!

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: LimeReport in a console application
« Reply #3 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

mrdebug

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: LimeReport in a console application
« Reply #4 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?

mrdebug

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: LimeReport in a console application
« Reply #5 on: May 17, 2017, 11:48:44 am »
Solved by paching the file qtservice_win.cpp