Uploaded image for project: 'Pentaho Reporting and Pentaho Report Designer'
  1. Pentaho Reporting and Pentaho Report Designer
  2. PRD-5711

Widows and orphans don't work in groups

    XMLWordPrintable

    Details

    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Steps to Reproduce:
      Hide
      • Create a report with a group having content in header, details, footer
      • Set repeat-header to true for the group header
      • Set group orphan or widows to values different from 0
      • Execute PDF Preview
      Show
      Create a report with a group having content in header, details, footer Set repeat-header to true for the group header Set group orphan or widows to values different from 0 Execute PDF Preview

      Description

      I need to create a report with a group, and seems there's no way to have the group footer not get orphaned on a new page. Setting widows and orphans anywhere on the group (or inside the details) causes an exception:

      org.pentaho.reporting.engine.classic.core.ReportProcessingException: Failed to process the report
      	at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processReport(AbstractReportProcessor.java:1765)
      	at org.pentaho.reporting.designer.core.actions.report.preview.PreviewPdfAction$ExportTask.run(PreviewPdfAction.java:123)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.IllegalStateException: This cannot be. If the validation said we get a new page, how can we now get lost here
      	at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processPaginationLevel(AbstractReportProcessor.java:1008)
      	at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:553)
      	at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processReport(AbstractReportProcessor.java:1713)
      	... 2 more
      

      I've tried some combinations of values (between 2 and 4) for both, with no success.
      Given this problem seems there's no way to not have a widow group footer

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              AKarneichyk Alena Karneichyk (Inactive)
              Reporter:
              mdilib Matteo Di Liberto Gasparin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: