yet another pdf page break question [message #925903] |
Fri, 28 September 2012 01:58  |
Eclipse User |
|
|
|
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 <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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.04838 seconds