Jump to content
We've recently updated our Privacy Statement, available here ×

Number of results of detail band is not correct


gogofe

Recommended Posts

Hy, I have designed a report which is giving me problems when the results of the detail band are bigger than a page. I mean when the number of results are bigger than a page some of the results of the second page are showing in the first page so some of the results of the second page are mixing with the results of the first page (its very wierd)

I attach you a pdf that shows this behaviour.

 

Thanks

 

 

 

 

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Can't run (don't have your dataset) so can't see the actual behavior but I would at first guess suggest you look at what you are doing with the page break element.

 

Why are you trying to manually control page breaks when the functionality is built into Jasper?

 

 

Link to comment
Share on other sites

Hy, I want to control manually or change some configuration because in the pdf file I sent in the first post, the first page of this pdf you can see that results that should appear in the second page are showing in the first page so these results are mixing with the results of the first page and you cant see well the first page.

When you say page break element you mean the next element?:

<break>
                    <reportElement
                        x="0"
                        y="14"
                        width="782"
                        height="0"
                        key="element-1"
                        stretchType="RelativeToTallestObject">
                            <printWhenExpression><![CDATA[boolean.valueOf(($V{lineIndex}.intValue() % 20) == 0)]]></printWhenExpression>
                        </reportElement>
                </break>

Is something wrong in this configuration?

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...