Skip to main content



      Home
Home » Archived » BIRT » yet another pdf page break question
yet another pdf page break question [message #925903] Fri, 28 September 2012 01:58 Go to next message
Eclipse UserFriend
version is:

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.17" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.3.2.r232_v20090521 Build &lt;2.3.2.v20090601-0700></property>


is there a way to reset the pageBreakInterval property for a table when the report is rendered in pdf?

I have the following in my beforeFactory:

if ( reportContext.getOutputFormat() == "pdf" ) { 
    // Give each table in the report a name, and add the names to the list below, e.g. ["mainTable", "childTable1"] 
    var tableListing = ["mainTable"]; 
    for each(var tableName in tableListing) { 
        var table = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement(tableName) 
        if (table != null) { 
            table.setProperty("pageBreakInterval", 0); 
        } 
    } 
}


but it only appears to work when rendering directly to pdf (run|view report|as pdf)

I want it to also work for printing to pdf from the web browser (run|view report|in web browser ... report renders... click Print Report | select PDF: Auto)

Printing as pdf from web browser results in the pageBreakIntervals breaking the table when there's still space left on the page

Any tips?
Re: yet another pdf page break question [message #926562 is a reply to message #925903] Fri, 28 September 2012 15:33 Go to previous message
Eclipse UserFriend
The problem with this approach is the pagebreak interval is used at generation time and when you view in the web viewer and then print it is only re-rendering the already created rptdocument.

Jason
Previous Topic:Changing the Parameter UI
Next Topic:CrossTabs - problem/feature with aggregations (multiple totals)
Goto Forum:
  


Current Time: Tue Jul 15 14:40:19 EDT 2025

Powered by FUDForum. Page generated in 0.04838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top