Hi,

 

I’m new to jasper reports and having a problem with adjusting the width of the report band. I am dynamically generating the report’s jrxml file depending on data and then compiling and showing the report programmatically. The problem is, sometimes the data stretches horizontally into many many columns and the report looks odd. Of course, by changing the pageWidth of the jasperreport element, I can show all the data, but what I want to do is to split the band to show, say 5 columns, in one table and the remaining clumns in a new table. Basically something like “wrap text” functionality in a text editor to show one line data in multiple lines. But the detail element allows only one band and all the columns in one band just grow horizontally. So, I used group>>groupHeader elements and added bands dynamically, a band for every 5 columns of data that I have to show.

 

But the problem here is that the bands inside group>>groupHeader elements are not showing data. Only column headers are shown. And if I use detail element, the bands inside it show all the data but cannot be split into multiple tables. Would appreciate if somebody can show me a way to do this.

 

Regards,

Kishore.

Reply via email to