BIRT 2.2.2. page break interval

omnius
edited February 11, 2022 in Analytics #1
Ever since upgrading the report desginer to 2.2.2. i'm having te following problem with exports to PDF:<br />
I have a landscape, a4, report with one table.<br />
This table has width set to 100%. So i want it to use the full page.<br />
This worked fine in 2.2.1.1. As of 2.2.2 it suddenly utilizes the "page break interval". The default page break interval is 50. Then it always puts 50 lines on the report and then it shrinks my page to fit the 50 lines on it. This means that the whole right side of the page isn't used.<br />
<br />
it kinda looks like the problem described in:<br />
<a class='bbc_url' href='https://bugs.eclipse.org/bugs/show_bug.cgi?id=207385'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=207385</a><br />
<br />
2.2.1.1: no problem<br />
2.2.2: problem as described<br />
2.3M5: problem as described

Comments

  • omnius
    edited December 31, 1969 #3
    In that topic there is mentioned that dynamic page breaks are no longer supported.
    But i can't find anything on the BIRT site about that. Can anyone confirm this? And can anyone tell me why they changed it?
  • Ihor
    edited December 31, 1969 #4
    We faced the same problem and found a quick hack to fix the page break pagination by patching a piece of 2.2.2 code with 2.2.1.1 version:

    1. In class org.eclipse.birt.report.service.ReportEngineService
    Method: private PDFRenderOption createPDFRenderOption(...)
    Change: // pagebreak pagination only setting
    renderOption.setOption( PDFRenderOption.PAGEBREAK_PAGINATION_ONLY,
    new Boolean( ParameterAccessor.isPagebreakOnly( request ) ) ); // code from 2.2.1.1 - line 590
    // Boolean.TRUE );

    Recompile this class and replace it in birt/WEB-INF/lib/viewservlets.jar

    2. Add HTTP parameter to BIRT report URL: "&__pagebreakonly=false"

    These will force paper size pagination to work and will avoid hard coded page break interval pagination. You can have "Page Break Interval" set to 0 now.

    Ihor