Issue 80155 - RPT: "Repeat Section" = "Yes" produces too many page breaks
Summary: RPT: "Repeat Section" = "Yes" produces too many page breaks
Status: CONFIRMED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: recent-trunk
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-29 20:46 UTC by Frank Schönheit
Modified: 2013-08-07 15:45 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
document to reproduce the bug case (209.78 KB, application/vnd.sun.xml.base)
2007-07-29 20:47 UTC, Frank Schönheit
no flags Details
Sample report (4.66 KB, application/vnd.sun.xml.writer)
2007-11-14 10:41 UTC, ocke.janssen
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Schönheit 2007-07-29 20:46: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.
Comment 1 Frank Schönheit 2007-07-29 20:47:22 UTC
Created attachment 47185 [details]
document to reproduce the bug case
Comment 2 Frank Schönheit 2007-07-29 21:17:27 UTC
resetting target, iTeam has not yet decided about it.
Comment 3 ocke.janssen 2007-08-01 10:08:59 UTC
change target
Comment 4 marc.neumann 2007-09-10 15:40:24 UTC
The Report Designer iTeam decided to retargeting this issue to "2.x".
Comment 5 ocke.janssen 2007-11-14 10:41:09 UTC
Created attachment 49649 [details]
Sample report
Comment 6 ocke.janssen 2007-11-14 10:43:34 UTC
@mib: Could please take a look at the odt document? May be you know a solution
for this one. Thanks.
Comment 7 ocke.janssen 2007-11-14 10:44:00 UTC
Add Thomas to cc list
Comment 8 michael.brauer 2007-11-14 11:33:55 UTC
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.
Comment 9 tmorgner 2007-11-14 15:09:53 UTC
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.
Comment 10 ocke.janssen 2007-11-19 12:56:57 UTC
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
Comment 11 ocke.janssen 2008-02-13 14:07:30 UTC
change to 3.0
Comment 12 ocke.janssen 2008-05-27 09:04:02 UTC
We need a new mechanism for odf sections which allows us to implement groups
from reports.