mateusz.meller Posted March 27, 2015 Share Posted March 27, 2015 Hi I want to insert dynamic page break (depending on the field value) between two details. Everything is OK if details have enough space on page. If not, I have blank page between details. Details split type are "prevent". I use Jasper Reports 4.5.0 Link to comment Share on other sites More sharing options...
tchen Posted March 28, 2015 Share Posted March 28, 2015 If you requirement is to have a page break between two detail lines when a column value changes, such as:A, other info.......A, other info.......A, other info.......>>> page breakB, other info.......B, other info.......>>> page breakC, other info.......You can put the column in a report group and set group to start in a new page. Link to comment Share on other sites More sharing options...
mateusz.meller Posted March 30, 2015 Author Share Posted March 30, 2015 No, my requirement is: false, info info info false, info info info >>> page break true, info info info false, info info info false, info info info >>> page break true, info info info false, info info info false, info info info Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted March 30, 2015 Share Posted March 30, 2015 Try giving Print When Expression for Break element. Add the break element. Set the property Print When Expression to your specific condition Link to comment Share on other sites More sharing options...
mateusz.meller Posted March 30, 2015 Author Share Posted March 30, 2015 I use Print When Expression in page break but when detail after page break don't have enough space on page I got blank page in the middle between detail before page break and after page break. Example: Detail on page 1 >> page break Blank page 2 Detail on page 3 Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted April 1, 2015 Share Posted April 1, 2015 That is because your detail Split type is set to Prevent. Try to set it stretch or null ** Pls use Add comment if you are replying to an answer other wise this will not be intimated to the person who answered and cannot give you further answers ** Link to comment Share on other sites More sharing options...
mateusz.meller Posted April 4, 2015 Author Share Posted April 4, 2015 thx, it helped Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now