NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

netBeans 6.5 + iReport + JasperReports

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
darktwister



Joined: 05 Jul 2009
Posts: 3

PostPosted: Mon Jul 06, 2009 11:06 am    Post subject: netBeans 6.5 + iReport + JasperReports Reply with quote

Hi i'm a newbie in iReport and JasperReports I read different tutorials about it but most of them have bugs in code and differnet problems..



In my case when I installed the plugin(jasper report + ireport) in the netBeans 6.5 and when I tried to use the import dori..... and import org....

the netBeans said that the package cannot be found..

Can someone post a step by step tutorial from installation to reporting

most of the people would like if someone created this tutorial..


Very Happy
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Mon Jul 06, 2009 10:55 pm    Post subject: netBeans 6.5 + iReport + JasperReports Reply with quote

The issue in your case is that you should also add the jar libraries to the project's classpath. Here's a good site for tutorials on iReport: http://www.thainetbeans.com/sample/


From: darktwister <address-removed>
To: address-removed
Sent: Monday, July 6, 2009 6:06:18 AM
Subject: [nbusers] netBeans 6.5 + iReport + JasperReports

Hi i'm a newbie in iReport and JasperReports I read different tutorials about it but most of them have bugs in code and differnet problems..







In my case when I installed the plugin(jasper report + ireport) in the netBeans 6.5 and when I tried to use the import dori..... and import org....



the netBeans said that the package cannot be found..



Can someone post a step by step tutorial from installation to reporting



most of the people would like if someone created this tutorial..
Back to top
darktwister



Joined: 05 Jul 2009
Posts: 3

PostPosted: Sat Jul 25, 2009 1:40 am    Post subject: Reply with quote

thanks for the site..

but im somehow having a little bit of problem with my program
Ive followed the instructions in the thainetbeans but it seems that my program is having a problem i just dont know where to look for that problem it would be a great help if someone helps me... please

as declared in the thainetbeans i should do this

Code:
private JasperPrint print;
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
        try {
            print = JasperFillManager.fillReport("report1.jasper", null, con);
        } catch (JRException ex) {
        System.out.print(ex.getMessage());
        }
        JasperViewer.viewReport(print);

    }
------------------
final String JDBC = "com.mysql.jdbc.Driver";
final String DB = "jdbc:mysql://localhost/hoteldatabase?user=root&password";
private Connection con;
    /** Creates new form NewJFrame */
    public NewJFrame() {
        initComponents();

        try{
        Class.forName(JDBC).newInstance();
        con = DriverManager.getConnection(DB);
        }
        catch(Exception ex)
        {
        System.out.println(ex.getMessage());
        }
    }


but whenever i try to run my program the jasperviewer will open but there is no report in it. and the error message said
Quote:
java.io.FileNotFoundException: report1.jasper


even though ive placed the .jrxml and .jasper in the src folder of the project

CAN SOMEONE HELP ME PleASE
Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad
Back to top
amrud



Joined: 26 Oct 2009
Posts: 1

PostPosted: Mon Oct 26, 2009 5:15 am    Post subject: Reply with quote

try to put the file in the project folder instead of the src folder

or
change ur directory at

print = JasperFillManager.fillReport("report1.jasper", null, con);

to

print = JasperFillManager.fillReport("./<project name>/src/report1.jasper", null, con);

choose which is better..
Back to top
roshani



Joined: 21 Jul 2010
Posts: 2

PostPosted: Thu Jul 22, 2010 11:34 am    Post subject: New JasperReports book Reply with quote

Following is link to the JasperReports book by Packt that is a complet step by step guide to install iReport, and visually create report using JasperReports engine.

JasperReports 3.6 Development Cookbook.

One chapter of the book is available for free download. This chapter demonstrates how to work with complex mathematical expressions. You can download the chapter from the following URL.

http://www.packtpub.com/sites/default/files/downloads/0769os-chapter-9.zip

You may check out the complete Table of Contents here.
Back to top
ael



Joined: 22 Jan 2009
Posts: 102

PostPosted: Thu Jul 22, 2010 11:14 pm    Post subject: Check Reply with quote

Use the search command....

http://forums.netbeans.org/viewtopic.php?t=17453&highlight=jasper
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo