项目需要打印报表:就是那种生成入库单,出库单等的操作。使用到的技术:使用iReport Designer5.1.0设计报表,使用struts2+jasperreporter生成最终填充数据的报表
首先看一下效果图
一、使用iReport Designer 设计报表
1、安装iReport Designer,过程比较简单。需要强调一下,5.1.0版本不支持jdk8,我又重新装了jdk7.然后在iReport-5.1.0\etc\ireport.conf下配置一下jdkhome,如下图所示为我的配置截图
2、打开iReport后,可以设置一下存储文件的位置,在工具->选项->Compilation and execution 中配置Compilation directory和Virtualizer中的Directory where the paged out data is to be stored为自定义路径。