rusbob Posted December 15, 2006 Share Posted December 15, 2006 Hi!My problem, how to set xml file as datasource for jasper (jrxml)? Thank you! Link to comment Share on other sites More sharing options...
toltsch Posted December 15, 2006 Share Posted December 15, 2006 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 More sharing options...
rusbob Posted December 18, 2006 Author Share Posted December 18, 2006 Thank you for answer!There is some requirements to structure of this file? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now