|
Re: Manual page break with DEAPI [message #1067066 is a reply to message #1065936] |
Fri, 05 July 2013 15:57 |
|
Sorry for the delay. You should be able to use the onCreate of the row to do calculations on each row of data to keep track of how far down the page you are, then set your page break before if the current row won't fit based on your calculations.
.setOnCreate(java.lang.String script)
Michael
Developer Evangelist, Silanis
|
|
|
|
Re: Manual page break with DEAPI [message #1067072 is a reply to message #1067067] |
Fri, 05 July 2013 16:48 |
|
When I've done this within a BIRT report before, I used a variable defined in the initialize method of the report, then based on the text in my current row, I calculated how many lines it would take up. I did this for each row, adding to my pageTotalLines variable and when my current computation showed that I would go over the number of lines I can fit, I'd set the page break. Then, in the onPageBreak event, reset the pageTotalLines count to start on the next page.
Michael
Developer Evangelist, Silanis
|
|
|
Powered by
FUDForum. Page generated in 0.05083 seconds