Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
automatic page size
dianbo
Hi,
I create a table, and the height of each row are not the same because of the length of element (The text will wrap when it is long enough). So, sometimes it is ok when i set page size to 40, but other time 40 is too big, then i will get a page with just a few (less then 5) records. Is there any way to realize automatic page size? Thanks.
Dianbo
Find more posts tagged with
Comments
mwilliams
Hi Dianbo,
Can you recreate this issue with the sample database and attach it in here? What version of BIRT are you using?
dianbo
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>Hi Dianbo,<br />
<br />
Can you recreate this issue with the sample database and attach it in here? What version of BIRT are you using?</p></blockquote>
<br />
Hi, I mean it will insert a page-break according to the page interval. Look at page 3 of the word document (word output of the attached report). is there any way to insert page-break according to the page usage.
mwilliams
Hi Dianbo,
Try setting the page break interval of the table to 0.
dianbo
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>Hi Dianbo,<br />
<br />
Try setting the page break interval of the table to 0.</p></blockquote>
Hi Michael,<br />
<br />
When i set the interval to 0, it will load all records in the first page in browser. If the amount of result is too big (hundreds of pages), then browser will very slow or directly down.<br />
<br />
Dianbo
mwilliams
Dianbo,
Yes, this will be the case for the html outputs, but for paginated outputs like DOC and PDF, it will work as expected. Unfortunately, the output format is not known until the onRender stage and the page break interval has to be changed in the onPrepare I believe, or else you could change the interval with the following based on output format:
tableContext = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("tableName");
tableContext.setPageBreakInterval(intervalSetting);