Increase the page width dynamically

 I have a report where the page width have to increase depending on the number of rows in the query.

But currently they are going to next page if it doesn't fit in that page. How can we remove page break or how can i increase the page width depending on the rows in the query

jasperforum's picture
Joined: Jul 16 2010 - 5:48am
Last seen: 13 years 2 months ago

4 Answers:

If that's about a crosstab, see net.sf.jasperreports.crosstab.ignore.width

Regards,

Lucian

lucianc's picture
86987
Joined: Jul 17 2006 - 1:10am
Last seen: 2 hours 50 min ago

 Thanks Lucian for the reply. I solved it in the other way

 

I have one more Question how Can i Calculate Median in the report. Right now i am calculating that in sql statement..

How can i get hold of result set in the ireports???

 

 

 

 

jasperforum's picture
Joined: Jul 16 2010 - 5:48am
Last seen: 13 years 2 months ago

There's no built-in way to calculate a median.  You could look into writing a custom JRIncrementer implementation for that.

Regards,

Lucian

lucianc's picture
86987
Joined: Jul 17 2006 - 1:10am
Last seen: 2 hours 50 min ago

 What is the other way? how could u solve this problem. I also meeting the same situation. please give the solution.

sanrose's picture
40
Joined: Mar 21 2012 - 4:33am
Last seen: 7 years 1 month ago
Feedback