Jump to content
JasperReports Library 7.0 is now available ×

Help on iReport and JRDatasources


2005 IR Help

Recommended Posts

By: Gabriel Bermudez - elgabo

Help on iReport and JRDatasources

2005-09-14 09:55

Hi, im very new at iReport,

I have this problem, I need to use an implementation of JRDatasource, but have no idea what parameter I have to set inside iReport so I can use it, the class is already done and its inside a jar file, I have tried to set the classpath and after that set a Datasource/Connection, but when i try to compile it to a .jasper file it doesnt work, only this shows up:

 

Compiling to file... ./reportePrueba.jasper -> /home/cmi/.javadev/iReport-0.5.1/bin/reportePrueba.java Errors compiling ./reportePrueba.jasper! it.businesslogic.ireport.ReportClassLoader@1423820 net.sf.jasperreports.engine.JRException: Report design not valid : 1. Field not found : getDescripcionBreve at net.sf.jasperreports.engine.design.JRJdtCompiler.compileReport(JRJdtCompiler.java:146) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:129) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Thread.java:595)

 

Im really new at this, if you can try to explain it step by step it will be greatly appreciated

 

Thanks

 

 

 

 

 

By: Wal Millard - walmillard

RE: Help on iReport and JRDatasources

2005-09-22 23:53

Gabriel,

 

You have a field object on your report called

 

getDescripcionBreve

 

probally like this $F{getDescripcionBreve} ???

 

but you have not declared this field in the field list. it might be a typo? You should look at some of the examples in the jasperReport zip/distro. They are the best place to start and there is an example for each of the different datasource types.

 

i use jasper 0.6.1. and the path to the example code is

 

jasperreports-0.6.1demosamples

 

luck

walmillard

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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