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

Regarding excel sheet datasource of subreport


rashmi_prabhu

Recommended Posts

Hi,

I am new to iReports and currently i am using iReport 4.0.2.Please someone help me in my query

I have a main report which has a subreport in it.The subreport retreives data from excel sheet.I followed following steps to retreive data

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

Error filling print...net.sf.jasperreports.engine.JRException:Unknown Column name:XYZ

 

Thanks and Regards

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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