how to use page break to display and print large amount of column?

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

How can i use page break to solve this problem?

michdraft's picture
Joined: Mar 24 2012 - 1:09pm
Last seen: 1 year 9 months ago

2 Answers:

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.
 
 
Thanks
 
Ankur Gupta's picture
Joined: Jan 21 2013 - 10:36pm
Last seen: 1 month 3 weeks ago

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

ketulpatel36's picture
Joined: May 16 2016 - 11:27pm
Last seen: 6 years 10 months ago
Feedback
randomness