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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - newzen

Pages: [1]
1
Discussion | Обсуждение / error - build from githib clone
« on: June 16, 2019, 03:49:33 PM »
/usr/lib64/qt4/bin/uic mainwindow.ui -o unix/release/ui/ui_mainwindow.h
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -D_REENTRANT -Wall -W -DHAVE_ZINT -DLIMEREPORT_VERSION_STR="\"1.4.134\"" -DLIMEREPORT_VERSION=\"1.4.134\" -DHAVE_QT4 -DHAVE_UI_LOADER -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtUiTools -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtScript -I/usr/include -I../include -Iunix/release/moc -Iunix/release/ui -o unix/release/obj/main.o main.cpp
In file included from ../include/lrreportengine.h:40:0,
                 from mainwindow.h:37,
                 from main.cpp:30:
../include/lrpreviewreportwidget.h:7:33: fatal error: lrpreparedpagesintf.h: No such file or directory
 #include "lrpreparedpagesintf.h"
                                 ^
compilation terminated.

any solution?

thanks in advance

2
a possible solution could be

dynamically replace the data source used by designer with the provided
by report->dataManager()->addModel("ds1", Model , true);

I mean get report.lrxml and replace $D{customers.CompanyName} with $D{ds1.CompanyName} on all fields and definitions with referenced to data source name

just my opinion

3
northwind.db path have no effect on reported bug.

I make my own report and have the same problem.

4
Discussion | Обсуждение / bug into demo_r1 test_customers.lrxml
« on: February 22, 2017, 05:25:21 AM »
hi,

As is the example (demo_r1 test_customers.lrxml ) not work the error is

Field customers.CompanyName not found in TextItem1 !!!

if i change

report->dataManager()->addModel("external_customers_data",customersModel,true);

to

report->dataManager()->addModel("customers",customersModel,true);

error is

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'LimeReport::ReportError'
  what():  datasource with name "customers" already exists !

so, my solution is change into test_customers.lrxml the data source to
external_customers_data and field to $D(external_customers_data.CompanyName)

so I think  the problem is I can't design the report with a data source and then replace with custom model with he same name.

I don't now if there is the right place for bug. If not next time will place on right place

Thanks


5
Discussion | Обсуждение / Re: embedding lime report
« 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

6
Discussion | Обсуждение / 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
 


7
Discussion | Обсуждение / Re: can lime report export to excel
« on: February 14, 2017, 04:14:47 AM »
there is https://github.com/dbzhang800/QtXlsxWriter maybe can help to export report.

Pages: [1]