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

Author Topic: embedding lime report  (Read 5232 times)

newzen

  • Newbie
  • *
  • Posts: 7
    • View Profile
embedding lime report
« on: February 15, 2017, 01:50:05 pm »
Hello,

I'm trying to figure how to embedded limereport into my application, im new bird on QT

I want to use bar-code too, so need to compile qzint

Have application that use qextserialport, and  my app structure is

myapp
   myapp.pro
   3erparty
      qextserialport <- folder
   ...

myapp.pro
    QT       += core gui sql xml widgets printsupport

    # qextserialport compiled and installed as shared library
    #CONFIG += extserialport
    # qextserialport compiled from sources
    include(3rdparty/qextserialport/src/qextserialport.pri)


How can i do something similar with lime report

sorry if my question is very basic

is possible to have a example project code ?

on other hand want to now how to install limereport libraries on my linux for use just like

LIBS += -llimereport

I need to call designer inside my app, for modify report at anytime.

thanks for assistance
 

« Last Edit: February 15, 2017, 02:00:10 pm by newzen »

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: embedding lime report
« Reply #1 on: February 15, 2017, 04:24:27 pm »
Look the sample below

LIMEREPORT_LIB_NAME = limereport
ZINT_LIB_NAME = QtZint

LIMEREPORT_DIR = $$[QT_INSTALL_PREFIX]/../LimeReport
LIMEREPORT_LIBRARY_DIR = $$LIMEREPORT_DIR/lib

INCLUDEPATH += $$LIMEREPORT_DIR/include

LIMEREPORT_LIB_FILE = -L$$LIMEREPORT_LIBRARY_DIR -l$${LIMEREPORT_LIB_NAME}
ZINT_LIB_FILE = -L$$LIMEREPORT_LIBRARY_DIR -l$${ZINT_LIB_NAME}

LIBS += $$LIMEREPORT_LIB_FILE
LIBS += $$ZINT_LIB_FILE

newzen

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: embedding lime report
« Reply #2 on: February 16, 2017, 01:19:36 pm »
thanks for reply,

I try your suggestion and work if you have compiled limereport.

So how to include in my project the compilation of lime report and qtzint.

thanks for any suggestion

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: embedding lime report
« Reply #3 on: February 16, 2017, 06:05:46 pm »
You need to build LM from source and put the limereport.dll and qtzint.dll to the same directory as your executable exists.
Look the picture attached (or limereport.so and qtzint.so if you use Linux). You can also put this files to the directory from PATH environment variable