You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! If I'm being honest, I don't fully understand what the problem is.
If you want the component to be split into parts and moved to another page, the DataBand it needs to be splitable.
startNewPage starts rendering the band from a new page.
startFromNewPage breaks the DataBand and ReportHeader, without setting this flag, the ReportHeader will be on the same page.
maybe rect calculation error? QString(R"(<td style='padding-right: 50px; padding-bottom: 10px; white-space: pre;'>%1</td>)").arg(text)
the databand should not be on the page footer
Hi! If I'm being honest, I don't fully understand what the problem is. If you want the component to be split into parts and moved to another page, the DataBand it needs to be splitable. startNewPage starts rendering the band from a new page. startFromNewPage breaks the DataBand and ReportHeader, without setting this flag, the ReportHeader will be on the same page.
It seems that you have a misunderstanding about how LimeReport generates reports.
A report consists of individual independent elements within which you can use HTML to format the text of that specific element.
I had many plans for improving LimeReport, but unfortunately, since it doesn’t bring me any income, I had to put its development on hold until better times :)
Activity
Jacyking commentedon Dec 26, 2024
maybe it can not auto start new page ?
fralx commentedon Dec 27, 2024
Hi! If I'm being honest, I don't fully understand what the problem is.
If you want the component to be split into parts and moved to another page, the DataBand it needs to be splitable.
startNewPage starts rendering the band from a new page.
startFromNewPage breaks the DataBand and ReportHeader, without setting this flag, the ReportHeader will be on the same page.
Jacyking commentedon Dec 30, 2024
maybe rect calculation error?
QString(R"(<td style='padding-right: 50px; padding-bottom: 10px; white-space: pre;'>%1</td>)").arg(text)the databand should not be on the page footer
Jacyking commentedon Feb 8, 2025
the databand should not be on the page footer
fralx commentedon Feb 8, 2025
Hi! Could You send me an example ( report template with data ) ?
Jacyking commentedon Feb 10, 2025
run with limereport:

1.zip
auto report = std::make_unique<LimeReport::ReportEngine>(); report->loadFromFile(":/template/1.lrxml"); auto ds = report->dataManager()->createCallbackDatasource("datas"); connect(ds, &LimeReport::ICallbackDatasource::getCallbackData, [](LimeReport::CallbackInfo info, QVariant& value) { switch (info.dataType) { case LimeReport::CallbackInfo::RowCount: value = 5; break; case LimeReport::CallbackInfo::ColumnData: if (info.index == 0) { value = R"(<table border='1'><tr><th>Date and Time</th><th>Time(h)</th><th>User</th><th>Group</th><th>Action and Reason</th></tr>)"; } else { value = R"(<tr><td>2024-12-16 19:20:18</td><td>0.0000</td><td>ABC</td><td>DEF</td><td>text</td></tr>)"; if (info.index == 4) { value = value.toString() + "</table>"; } } break; case LimeReport::CallbackInfo::ColumnCount: value = 1; break; case LimeReport::CallbackInfo::ColumnHeaderData: value = "data"; break; default: break; } }); report->dataManager()->setReportVariable("Batch", "batch"); report->dataManager()->setReportVariable("Title", "title"); report->dataManager()->setReportVariable("Report_By", "report_by"); report->dataManager()->setReportVariable("Report_Time", "report_time"); report->dataManager()->setReportVariable( "Items", QStringList({"<div>a: 1</div>", "<div>b: 2</div>"}).join("\n")); report->dataManager()->setReportVariable( "Company", QString(R"(<a href='%1' style='color: inherit; text-decoration: none;'>%2</a>)") .arg("https://github.com/fralx/LimeReport") .arg("LimeReport")); report->previewReport();Jacyking commentedon Feb 10, 2025
run with web:

Jacyking commentedon Feb 11, 2025
I encountered a new (above) problem when I tried to reproduce the bug
(maybe i didn't use datasources before)
Jacyking commentedon Feb 11, 2025
run with limereport:

reproduce the bug when the row count is 1.

Jacyking commentedon Feb 11, 2025
so if i don't know the column count, i should how to do ?
fralx commentedon Feb 20, 2025
It seems that you have a misunderstanding about how LimeReport generates reports.
A report consists of individual independent elements within which you can use HTML to format the text of that specific element.
fralx commentedon Feb 20, 2025
At the moment there is no easy way to solve that issue
Jacyking commentedon Jun 25, 2025
So now i solve it by more template, it is too ....~~more more more!!
Do you plan to support that ? like QTableView, I can set the column count.
fralx commentedon Jun 25, 2025
I had many plans for improving LimeReport, but unfortunately, since it doesn’t bring me any income, I had to put its development on hold until better times :)