2 subreports splitting. B subreport should start on the same page as A subreport.

0

Hi everybody,

I need your help. I am new to Jasper and can't find a way to fix my problem. I tried googling and went throught jasper community but still havent found any solutions.

 

I have 2 subreports in detail band and they are printed one on another. Problem is when it comes to spliting them into new page. First subreport should always be printed whole in same page so I set split to prevent. First subreport alway contains no more that 3-5 lines. Second one should be splitted since it can have from 1 to 90 lines and may take more than one page. So I set split to strech. Now I get a problem that some times  seconds' subreport first few lines are printed in first page since it takes less space than first subreport and I need to fix it that way that second subreport would start only when first one is printed. 

Please help me with this one.

Many thanks.

 

 

sebpra's picture
15
Joined: Jul 13 2017 - 12:20am
Last seen: 2 years 3 months ago

1 Answer:

0

No need to change any Strech type properties and all. Just increase your report height. 2nd subreports will be print in same page. if you want to print 2nd subreport into new page. just enable "Title On A New Page" property in 2nd subreport.

loyolafranklin67's picture
Joined: Dec 19 2017 - 10:06pm
Last seen: 2 years 2 months ago
Feedback