Jump to content
Changes to the Jaspersoft community edition download ×

Two subreports with rows limit on the same page


begie7

Recommended Posts

Hi, I need to get an effect:

 

----- page 1 ---------- subreport 1 -----             recordX 1             recordX 2             ...             recordX n----- subreport 2 -----             recordY 1             recordY 2             ...             recordY n----- end of page 1 ----- ----- page 2 ---------- subreport 1 -----             recordX n + 1             recordX n + 2             ...----- subreport 2 -----             recordY n + 1             recordY n + 2             ...----- end of page 2 -----

1 subreport is to consist of e.g. 15 lines, the second - 10. I did something like this:

 

// subreport1   .detail (cmp.pageBreak().setPrintWhenExpression(new PageBreakExpression ())) // every 15 lines// subreport2    .detail (cmp.pageBreak().setPrintWhenExpression(new PageBreakExpression2())) // every 10 lines

But the problem is that when pageBreak follows it doesn't generate a subreport2. How to do it?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...