Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » yet another pdf page break question
yet another pdf page break question [message #925903] Fri, 28 September 2012 05:58 Go to next message
j k is currently offline j k
Messages: 436
Registered: September 2012
Senior Member
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 19:33 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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: Sat Sep 20 08:08:39 GMT 2014

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

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