Jump to content
We've recently updated our Privacy Statement, available here ×

XML file as datasource!


rusbob

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

In iReport you would select Data from the menu then Connections / Datasources.

 

Then press New

 

Then drop down the list and select XML file datasource.

 

In code you do the following to call it:

 

JRXmlDataSource jrxmlds = new JRXmlDataSource(xmlFileName,recordPath);

 

print = JasperFillManager.fillReport(

"yourreport.jasper",

hm, jrxmlds);

Link to comment
Share on other sites

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...