How to make a row span multiple rows in a jasper table?

  

I am using japser reports in groovy grails.I have a list of subcategories belonging to a particular category.I am using the concept of "group" to form an indivudual group for eacg Category.

My requirement is the "name of the category" should span the entire group to which it belongs when the report is generated.How can we do it since we can't mention a specific height.

i am using <printWhenExpression><![CDATA[$V{categoryGroup_COUNT} == 1]]></printWhenExpression>.But,this prints the "category name"  only for the first element in each group something like below:-

charu.chandni28's picture
Joined: Jul 21 2015 - 11:07pm
Last seen: 7 years 9 months ago

2 Answers:

Hi,

Try to use crosstab component. You can do exactly what you want by using crosstab.

zh3ntil's picture
3331
Joined: Nov 19 2014 - 11:02pm
Last seen: 6 years 11 months ago

I was facing issues in passing the data from my Grails Controller to jasper report using a crosstab component.

So,i used list and table components to construct my view.Can I achieve the above rowspan thing using table component.

If by any method,I can dynamically set the height of the "Category" column in my controller at runtime.

 

charu.chandni28's picture
Joined: Jul 21 2015 - 11:07pm
Last seen: 7 years 9 months ago
Feedback