Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Matilda Hughes   on Aug 29 In Java Category.

  
Question Answered By: Cheri Garcia   on Aug 29

you can use JRBeanArrayDataSource or JRBeanCollectionDataSource
that contain POJO,

for example:
JRBeanCollectionDataSource dataSource;
List reportData = ...;
dataSource = new JRBeanCollectionDataSource(reportData);

by passing this datasource to report,
Jasper evaluate POJO properties with report  fields based on name,
and put proper value (from pojo) to proper field on report.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on how to print an arraylist using jasper report? Or get search suggestion and latest updates.


Tagged: