rashmi_prabhu Posted June 6, 2011 Share Posted June 6, 2011 Hi,I am new to iReports and currently i am using iReport 4.0.2.Please someone help me in my queryI have a main report which has a subreport in it.The subreport retreives data from excel sheet.I followed following steps to retreive data1..In subreport properties i chose connection type as datasource expression.2.In datasource expressioni wrote new net.sf.jasperreports.engine.data.JRXlsDataSource(new File("path of xls file"))When i compile subreport individually it gives report correctly but when i try to retreive data through main report it gives me following errorError filling print...net.sf.jasperreports.engine.JRException:Unknown Column name:XYZ Thanks and Regards Link to comment Share on other sites More sharing options...
madhukiran Posted June 7, 2011 Share Posted June 7, 2011 Subreport accepts excel column names as Column0, Column1,Column2 only when you are using excel datasource. You cannot give any other column name like XYZ etc., Link to comment Share on other sites More sharing options...
madhukiran Posted June 7, 2011 Share Posted June 7, 2011 http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=77086 try this 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