News: LimeReport new version 1.5 has been released
Вышла новая версия LimeReport 1.5

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 - Subst

Pages: [1] 2 3 ... 31
1
Discussion | Обсуждение / Re: Build error v 1.5
« on: March 07, 2025, 07:12:44 am »
first - if you hash clicked to error message the text must expandning and wil be shown as obove

Code: [Select]
D:\QtProjects\TtxUiTool\src\TMainWnd.cpp:749: error: incomplete type 'QDateTime' used in nested name specifier
..\..\src\TMainWnd.cpp: In member function 'bool TMainWnd::parseSdlxFile(quint16, const QString&)':
..\..\src\TMainWnd.cpp:749:26: error: incomplete type 'QDateTime' used in nested name specifier
  749 |   quint64 now=QDateTime::currentMSecsSinceEpoch();
      |                          ^~~~~~~~~~~~~~~~~~~~~~


second - the problem with database - it's a problem of Qt, not LR

LimeReport will work with database if your Qt can work with it. The base build of Qt not supports all database formats.
But it's obout Qt not LR.

You can walk to telegram-group https://t.me/qt_chat and try to resolve proble, there.
But it's Russian-language group  ;D Must of members known English to some extent but home lang - russion  :)

2
Discussion | Обсуждение / Re: Build error v 1.5
« on: March 01, 2025, 09:32:11 am »
Hi!

Quote
Aggregate 'Qpainterpath ' has incomplete type and cnnot be defined'

in which file message appears?

Quote
Can I add support for mysql to Lime Report? Now I have to convert Access dtabase to mysql and the to sqlite. All responses are appreciated

LR is able to work with any database. Your application must work with database, LR can operated with models, transferred from main application code.

3
Hi!
By using the script as the content of TextItem for example
Like this

Code: [Select]
$S{
  if (your_condition)
    THIS.borders=15;
  "simple_text";
  }

the Enum of borders is

Code: [Select]
enum BorderSide {
  NoLine = 0,
  TopLine = 1,
  BottomLine = 2,
  LeftLine = 4,
  RightLine = 8,
  AllLines = 15
  };

4
Hi!
Can I see your LR report file (.lrxml) ?

5
упс... так у Image вроде есть Property
Code: [Select]
scaleон же
Code: [Select]
Масштабировать

6
что есть "чек программы" ?

7
really, we are discussed about with Alex and we can't undestood, what you want at all.
are U want to change data in complete report according to dynamically change of your data??

8
Hi!

look the
Code: [Select]
IDataSourceManager::addModel(const QString& name, QAbstractItemModel *model, bool owned)
and look UserManualEng.pdf for "External data sources"

9
Hi!

QTableView dot't store any data it's own.
The data exists in the model.
This model You have been added to report.

Now You can just call
Code: [Select]
report->designReport() to show LRDesigner, and your model must be shown in datasources

10
если задача именно из кода сделать, то это вариант 1, через callbackDataSource

11
Хай!
Несколько неверно делаешь, смотри что происходит:
Ты сделал модели, отфильтровал (с помощью where id=..) твой customers и потом отдал модели в LR.
У тебя в отчете будут "замороженная" в моменте модель, с тем фильтром, который был применен на момент передачи ее (модели) в отчет.

Что нужно:
2 варианта:

1. использовать callBackDataSource - в docs/Руководство пользователя.pdf довольно подробно есть про это.
2. Твою customers модель полноценно создать в самом отчете LR, как subdetail. См. вкладку Datasources в дизайнере отчетов.

12
The "common" way to format as you want in the script using

Code: [Select]
$S{
  var value=1.000004;
  var approx=numberFormat(value,"f",4);
  while (approx.charAt(approx.length-1)=='0' || approx.charAt(approx.length-1)=='.')
    approx=approx.slice(0,-1);
  approx;
  }

13
не рендерить
у страницы есть свойство "notPrintIfEmpty" (в локализации поищи, как обзывается, смысл понятен)

соответственно, не печатать, если пусто.
Далее скриптами ли, содержимым, добиться, чтобы на странице ничего не было - это путь в лоб.

Иной подход попробовать:
сделать кол-бэк функцию (в скриптах) и попробовать поиграться там. Примерно, так

Code: [Select]
page_1.beforeRender.connect(beforePrint);
function beforePrint()
  {
  page_1.printable=false;
  page_1.isVisible=false;
  }


14
что значит из отчета?
из шаблона?
из результата рендеринга?

15
Discussion | Обсуждение / Re: limereport crash
« on: January 12, 2024, 11:57:55 am »
It's strange. I've checked and all fine for me.
Check the lifetime of report object.
And what version of LR you are using?

Pages: [1] 2 3 ... 31