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
Set pageBreakInterval for export to pdf from the webviewer
Migrateduser
<p>Hi,</p>
<p> </p>
<p>Been a long day today.</p>
<p> </p>
<p>I've been trying to find a way to set a page break interval in my report design specific to exporting to PDF from the BIRT web report viewer.</p>
<p> </p>
<p>To explain this more ...</p>
<p> </p>
<p>In the BIRT designer I have set the following page break settings on my table to :</p>
<p style="margin-left:40px;">Before: Auto</p>
<p style="margin-left:40px;">After: Auto</p>
<p style="margin-left:40px;">Inside: Auto</p>
<p style="margin-left:40px;">Page Break Interval: 20</p>
<p> </p>
<p>When I display the report in my BIRT report viewer I want these settings to hold true and therefore to have a page break after 20 records.</p>
<p> </p>
<p>But from the BIRT report viewer when the user exports to PDF I want to set a pageBreakInterval of equal to a different number. In my case I have a report parameter passed into the report where the user can specify a number. If they want 10 records per page they can enter that in.</p>
<p> </p>
<p>I am struggling to find a way to do this.</p>
<p> </p>
<p>In the beforeFactory of the report I tried to do this...</p>
<p> </p>
<p style="margin-left:40px;">if(reportContext.getOutputFormat()=="pdf") {</p>
<p style="margin-left:80px;">reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("mytable").setProperty("pageBreakInterval",params["PageBreakInterval"].value); </p>
<p style="margin-left:40px;">}</p>
<p> </p>
<p>But this does not work.</p>
<p> </p>
<p>I am using BIRT reports engine 3.7.2.</p>
<p> </p>
<p>Thanks in advance</p>
<p> </p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet