mfa
Posts: 3
|
Posted: 05/29/2007, 5:16 AM |
|
hi master
sir i use sun java studio creater
i install ireport and designed the fahim.jrxml file the run and test that give right result show report in jrxmpl preview
sir guid me how i call my ireport file in sun java stdio crater
i also add jasperreports-1.3.3.jar in project lib
i use this code but that give me error
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);
JasperPrint jasperPrint = JasperFillManager.fillReport("f:\ireport\fahim.jrxml",new HashMap(),conn)
it file i designed in ireport fahim.jrxml
sir my question is how i call fahim.jrxml file directly in studio creater
why i use xml code in studio creater
please give me idea and step
thank
aamir
|
|
|
matheus
Posts: 386
|
Posted: 05/29/2007, 10:30 AM |
|
This is IReport Java Forum or Codecharge Java Forum?
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
Byapti
Posts: 1
|
Posted: 07/31/2007, 4:20 AM |
|
Hi,
I think the iReport article on http://aspalliance.com/1229_Creating_and_Designing_Report_Using_iReport__Part_1 may be helpful in this discussion.
This popular white paper is written by a software engineer from our organization Mindfire Solutions (http://www.mindfiresolutions.com).
I hope you find it useful!
Cheers,
Byapti
|
|
|
|