How to Add Crosstab to End of Table

0

Hi,

I am trying to add a crosstab to the end of a table I created because I need to be able to expand the table columns based on the value of a certain field.  I plan to open this in excel since it may end up having quite a few columns.  Is this possible?

Thanks,

jcking's picture
3
Joined: Apr 18 2017 - 1:36pm
Last seen: 1 year 11 months ago

Thank You!

jcking - 2 years 2 months ago

1 Answer:

1

You will need to use two separate report objects in the band (summary band I guess) - table and crosstab. Both can use same data set or you can use different data sets. When exporting to Excel though I'd recommend to put them both on different sheets as crosstab columns and table columns can have different size and that can cause the exporter to merge a lot of cells and generally give you a messy output. To force a page break add a break element between Table and Crosstab elements. To force Excel exporter to print each page on it's own sheet use this property in the report:

http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasper...

Friendly User's picture
Joined: Oct 8 2009 - 5:59am
Last seen: 1 week 3 days ago
Feedback
randomness