CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 how call ireport in sun java studio creater

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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





View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.