How to dynamically remove the columns in ireport [

2019-03-29 07:51发布

This question already has an answer here:

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.

1条回答
成全新的幸福
2楼-- · 2019-03-29 08:20

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

查看更多
登录 后发表回答