Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to dynamically remove the columns in ireport [duplicate]

I am using ireport to design jasper reports. I want to have a report that can be dynamically generated based on user input. Means columns can be added/removed based on user input.

The one solution I know is to design the report that contains all the columns, Then based on the user input, Using "Print When Expression" can hide the column, But the empty column will still be there. Is there any way to remove the columns completely without leaving empty space in ireport.

like image 517
n92 Avatar asked Jan 16 '12 09:01

n92


1 Answers

JasperDesign is used to modify the template object (JasperReport) from within the code at runtime. I guess this might fit in your case.

Also check this SO question

like image 86
Cid Avatar answered Oct 10 '22 06:10

Cid