Jump to content
Changes to the Jaspersoft community edition download ×

arraylist datasoource


sazoo

Recommended Posts

Hi,

 

Just want to ask, I want to make an arraylist as my datasource, it creates a pdf file but the contents of the array list is not there...

 

here's the code.

 

JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(list);

 

jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(),ds);

JasperExportManager.exportReportToPdfFile(jasperPrint, "test.pdf");

 

tnx

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...