简体   繁体   English

动态Jasper报表列

[英]Dynamic Jasper Report Columns

i want to generate jasper report which is used to print on a fixed size stationary. 我想生成用于在固定大小的固定式打印机上打印的jasper报告。 I created html table and place all values in that as per my requirement now i want to print through java so i used jasper report now in that i have columns which is vary on time. 我创建了html表并按照我的要求放置了所有值,现在我想通过java打印,所以我现在使用jasper报告,因为我的列会随时间变化。 As per my requirement i searched on internet and i got dynamic jasper is solution but in that the method add column required column name and pass variable which is from setter getter method but my whole columns are dynamic then how can i generate setter getter method or generate jasper report ? 根据我的要求,我在互联网上搜索并且我得到了动态的jasper解决方案,但是在该方法中添加列需要列名称并传递来自setter getter方法的变量,但是我的整个列都是动态的,那么我如何生成setter getter方法或碧玉报告?

Look Below Image 看下面的图像

http://s1.postimg.org/ydu6pz24r/Report.jpg' border='0' alt="Report" /> http://s1.postimg.org/ydu6pz24r/Report.jpg'border ='0'alt =“报告” />

Finally i was created pojo of my columns and pass to detail band as a data and then after on bank pojo means which has values are empty spaces for space between columns and data. 最终,我创建了我的列的pojo并将其作为数据传递到详细信息带,然后在存储pojo之后意味着其值是列和数据之间的空白。 And then i send my values of columns like this tricky logic i solved my problem 然后我像这样棘手的逻辑发送我的列的值,我解决了我的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM