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.
精彩评论