Richie
Richie

Reputation: 5199

birt report viewer how to show all results on same page

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>  

Upvotes: 4

Views: 10764

Answers (2)

ANK
ANK

Reputation: 595

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

Image

Upvotes: 4

Dominique
Dominique

Reputation: 4342

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

Upvotes: 9

Related Questions