jasperReport提供的demo中有关于horizontal的使用,
告诉大家怎么分多列显示数据,
并且通过group进行汇总,
但是只看报表文件不容易理解,我查询了相关资料,
以下是一个帖子的回复:
Based on your above comment, I would say that it is not that difficult to print a list of elements horizontally. A List component is basically a
subreport. So, you could also create a custom List component, which prints a list of elements horizontally. All you need is to create a new report without any margins, set it's "Print
Order" to "Horizontal"
and set the number of columns as
per your requirements. You could then embed this report as subreport in some main report and print elements horizontally.
设置报表的Print Order:Horizontal(横向)
列数:columns 就可以了,这些属性都是报表的属性