I have a problem with page breaks in a CR report. And yes, I have searched anywhere else for a solution or answer - unfortunately with no luck so far.
The situation is:
Using CR 2008 or CR 2010 (version 14.0.1.287 RTM) I created a report for
an invoice. It's quite complex with several report headers, page
headers, group headers, detail sections etc. It contains some
subreports (in the details sections), too.
The problem is that the report, if printed (or shown as a preview
e.g. in SAP Business One), repeats the last detail section of a page on the next
page without being "told" to do so. The problematic area is:
... group header
- detail section A / contains just a dotted line
- detail section B / contains a formular field to init variables (field suppressed)
option "suppress empty section" is ticked
- detail section C / contains a subreport that can grow in size and contains a picture
- detail section D / contains fields that can grow
- detail section E / contains fields that can grow
- detail section F / contains fields that can grow
- detail section G / contains fields that can grow
- detail section H / contains fields that can grow
- detail section I / contains just a dotted line
- detail section J / contains fields that can grow
- detail section K / contains fields that can grow
- detail section L / contains fields that can grow
- detail section M / contains fields that can grow
- detail section N / contains a text field that can grow
- detail section O / contains a text field that can grow
- detail section P / no content, just a "space bar" between printed lines
- detail section Q / contains two subreports that can grow
- detail section R / contains a text field that can grow
- detail section S / contains a text field that is fix
group header ...
Depending on the data to print, some of the listed detail sections are suppressed by conditions/formulas. The suppressed detail sections are not always the same: Sometimes they are suppressed, sometimes not. This works without problem.
The complete report works fine and the page break itself works/is done - the
only problem is that the very last detail section of a page
(at the bottom of the page, next section is the footer) is printed correctly at the bottom of one
page and then repeated at the top of the next page.
I do not want
it to be repeated. I need a simple 'soft' page break when the page is
full and then the remaining detail sections should be printed on the
next page.
I
tried everything I could think of (keep together for complete detail
section, just for some detail sections, rearranging the order of the
sections, putting the subreports elsewhere in the order, formatting the
subreports with/without keep together and so on). Unfortunately nothing
helps.
It's not possible to force a page break after X lines as I do not
know how high/long a complete detail section is (how much details sections are printed [e.g. a - s, just a - m etc.]), it always varies, due to
the data.
Is there a solution to this?
The problem already costed me some nights of work and testing. Thank you for a tip or hint!