How to get dynamic columns in the table in jasper report during Run time?


I want dynamic coulmns in my table. For example, sometimes while generating report there will be 2 columns or 3 columns or sometimes more depending on the data.

I tried using printWhenExpression option but I need dynamically because I will not be knowing about the Columns appearing dynamically. How it can be achieved please help me solving this issue.

Is it possible to achieve in jrxml file, not in DynamicJasper thing.


Thanks in advance.

bhatsachin95's picture
Joined: Oct 10 2018 - 12:42am
Last seen: 19 hours 47 min ago

1 Answer:

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 hours 5 min ago