开发者

Collection in jasper reports

开发者 https://www.devze.com 2023-02-22 05:29 出处:网络
I have a list of objects and I want to print them in a jasper pdf output as a table. The objects have 3 String istances. So I want something like this:

I have a list of objects and I want to print them in a jasper pdf output as a table. The objects have 3 String istances. So I want something like this:

Obj1Str1 Obj1Str2 Obj1Str3 
.. 
Obj3Str1  .......

just like a table.

Can you show me what to do (xml file and java cod开发者_运维技巧e) ?


You need to use a JRBeanCollectionDataSource as the data source for the report.

0

精彩评论

暂无评论...
验证码 换一张
取 消