michdraft Posted January 15, 2014 Share Posted January 15, 2014 I have a report which has large amount of columns(20 until 100). I can not display it on one page and i want display 27 column on every page.here is refrence to my code. http://stackoverflow.com/questions/19498123/how-to-add-columns-to-the-new-page-in-jasperreports-report-when-exceed-the-widthHow can i use page break to solve this problem? Link to comment Share on other sites More sharing options...
Ankur Gupta Posted January 16, 2014 Share Posted January 16, 2014 Hi, You can easily achieve by placing the 'Column Break' Element in your report, to achieve this you can follow these steps: 1. You need to drag and place break element in from the palette in iReport/Jaspersoft Studio.2. Then in case of iReport you need to choose the break type as Column and similarly in case of Jasper Reports 3. Then you need to set a Print When Expression for the break element as you want the break to occur after 25 columns. 4. I think you should try the table component, which offers the possiblity to hide unused columns using a printWhenExpression. you can try the same using dynamic jasper. This is how you can achieve the solution for your problem. Hope that this helps. ThanksAnkur Guptahttp://ankurthetechie.blogspot.in/ Link to comment Share on other sites More sharing options...
ketulpatel36 Posted May 17, 2016 Share Posted May 17, 2016 Can we use Pagebreak in JasperReports to go to new page after certain number of column and print the columns?Ankur Can you Explain Briefly... 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