Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

birt report viewer how to show all results on same page

Tags:

birt

I have a report with a large number of rows displaying from a data set. When I preview the report in the BIRT report viewer from the eclipse report designer (during my development) it allows me to scroll and see all the rows in the report without having to skip pages.

However when I see the same report in the Birt report viewer from my web application (java), the report viewer only shows about 50 rows per page and then I have to click on the next page button which is not what I want.

Using the report designer I have set the page break interval to 200 and avoid Before, After and Inside but still in my web application it doesn't show all the results in the same page like it does in eclipse.

Can someone help me with what setting I am missing to show all the results on the same page please. Here is how I embedd my report viewer into my jsp....

                <birt:viewer 
                    id="birtViewer" 
                    reportDesign="resources/reports/${reportName}.rptdesign"
                    pattern="frameset"
                    format="html"
                    height="600"
                    width="900"
                    title="${reportTitle}"
                    isHostPage="false">
                    <c:forEach var="entry" items="${reportParams}">                                                     
                        <birt:param name="${entry.key}" value="${entry.value}"/>                            
                    </c:forEach>                        
                </birt:viewer>  
like image 537
Richie Avatar asked Oct 30 '25 22:10

Richie


2 Answers

This problem seems to be related to the height of the masterpage. When a layout of a report is set to "fixed" (see picture below), the masterpage has priority on the value of the pagebreak interval. Most of the time this height is set to 11 inch or something like that, this is why there are still pagebreaks even if we set a very large interval.

If we set a layout to "Auto", this time pagebreak interval is taken into consideration (at least in html format).

enter image description here

like image 188
Dominique Avatar answered Nov 03 '25 00:11

Dominique


You can set the number of contents for the page in Page Break Interval as shown in the image.

Image

like image 44
ANK Avatar answered Nov 03 '25 01:11

ANK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!