Apache OpenOffice (AOO) Bugzilla – Issue 80155
RPT: "Repeat Section" = "Yes" produces too many page breaks
Last modified: 2020-11-23 21:23:02 UTC
- open the attached database document - open the contained report for editing - set the property "Repeat Section" of the group header to "Yes" - execute the report - (Enter "Europe" when asked for a parameter) => an report is generated which contains - the report header on the first page, which otherwise is empty - the data of the single group on the second page - the report footer on the third page, which otherwise is empty The problem here, according to Thomas' comment in issue 78128, is that the only way to implement a repeating section is to force a page break before the header and a page break after the footer. While it is understood that this is a limitation of the file format and Writer's current implementation, this certainly is nothing the user expects. Thus, we should address it.
Created attachment 47185 [details] document to reproduce the bug case
resetting target, iTeam has not yet decided about it.
change target
The Report Designer iTeam decided to retargeting this issue to "2.x".
Created attachment 49649 [details] Sample report
@mib: Could please take a look at the odt document? May be you know a solution for this one. Thanks.
Add Thomas to cc list
Why is the header of the table in the header of the page, rather than just being the header of the table itself? OOo allows to declare an arbitrary number of table rows to be repeated on every page, so I so no reason why the header rows are within the table header. Well, for footers this may be different.
Q: "Why is the header of the table in the header of the page, rather than just being the header of the table itself?" A: The table-header repeating is too limited for our purposes. It is not guaranteed that the repeated header is the last or the only one, manual pagebreaks inside the report (which can happen everywhere) require us to break the table to apply the pagebreak on a paragraph or table-tag. So there is only a very narrow case where we could use the repeat-table-header feature of OOW, so our code becomes cleaner and more maintainable by plainly heading for the general case and dropping the page/repeated-group-header into the Page-Header-Section of the writer instead. Repeated headers are not part of the documents 'normal-flow' - they are defined in the document's normal-flow and then copied on the header/footer sections. The fact that the only way to activate a new page-header/footer is to apply a new page-template (which is implemented to imply a forced-pagebreak) makes it impossible for us to reduce the numbers of executed pagebreaks here.
Hi Thomas, please find a solution together with Michael. As far as the issue is either on the writer side or your side, I set you as owner. Thanks, Ocke
change to 3.0
We need a new mechanism for odf sections which allows us to implement groups from reports.