posted 18 years ago
sir i use under blow code for geting datasource
no error in datasource but when use datasource object that give me errr
Connection conn = null ;
// the following should be in a try-catch...
javax.naming.Context ctx = new javax.naming.InitialContext() ;
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/Travel") ;
conn = ds.getConnection() ;
JasperReport jasperReport = JasperCompileManager.compileReport ("f:\ireport\fahim.jrxml","G",conn); ?(this line give me error )
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,new HashMap(),obj);
please give me idea how i get ireport JasperReport viewer
thank's
aamir