Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Page Breaks within Nested Tables and Grids when Importing into PDF
Migrateduser
I have a report with nested tables and grids.
The report page breaks inconsistently when exporting to pdf.
The BIRT version I am using is 2.3.2.
Is there a way to fix this issue?
Used the following code in the "beforeFactory" method of the report,but, it did not resolve the issue.
// Remove page break intervals from PDF output
if ( (reportContext.getParameterValue("usepagebreaks") == "false")|| 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);
}
}
}
Find more posts tagged with
Comments
There are no comments yet