如何动态删除ireport中的列 [英] How to dynamically remove the columns in ireport

查看:403
本文介绍了如何动态删除ireport中的列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ireport设计jasper报告。我希望有一个可以根据用户输入动态生成的报告。意味着可以根据用户输入添加/删除列。

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.

我知道的一个解决方案是设计包含所有列的报告,然后根据用户输入,使用表达时打印可以隐藏列,但空列仍然存在。有没有办法完全删除列而不留下ireport中的空白空间。

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.

推荐答案

JasperDesign 用于在运行时从代码中修改模板对象(JasperReport)。我想这可能适合你的情况。

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

同时检查这个问题

这篇关于如何动态删除ireport中的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆