Results 1 to 4 of 4
  1. #1
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default slow JasperReport

    I did a report with iReport, when I test it inside of iReport works, but when I do the preview in the program but it takes a lot of minutes to do it.
    Why?
    this is the code:
    Java Code:
          String reportSource = "./report/test3.jrxml";
           HashMap params = new HashMap();
           JRDesignQuery queryReport = new JRDesignQuery();
           params.put("something","1"); 
          
           try
           {
               JasperDesign diReport= JRXmlLoader.load(reportSource);
               queryReport.setText(consult);
               diReport.setQuery(queryReport);
               JasperReport jasperReport = JasperCompileManager.compileReport(diReport);
               JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, DB.getConnection());
               JasperViewer ReporttoPreview = new JasperViewer(jasperPrint,false); 
               ReporttoPreview .setTitle("lawyers");
               ReporttoPreview .show();
    plz help me!!

  2. #2
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    Maybe you need more ram memory
    How many do you have? 512 ?

  3. #3
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    7

    Default

    What about your jasper report version?
    What do you have?

  4. #4
    coldblood22 is offline Member
    Join Date
    Feb 2008
    Posts
    3
    Rep Power
    0

    Default Jasper Report quite slow

    Even i am experiencing the same problem. i got 512 MB RAM still it takes more than 20 secs for the report to load.
    Please help out.

Similar Threads

  1. Netbeans+java+JasperReport
    By wedage in forum NetBeans
    Replies: 1
    Last Post: 11-08-2008, 12:28 PM
  2. eclipse very slow
    By katie in forum Eclipse
    Replies: 2
    Last Post: 11-05-2007, 10:20 AM
  3. Replies: 1
    Last Post: 07-31-2007, 04:53 PM
  4. JasperReport OutOfMemory
    By gustavofranco in forum Advanced Java
    Replies: 0
    Last Post: 07-26-2007, 09:42 PM
  5. problems with jasperreport
    By Ed in forum New To Java
    Replies: 2
    Last Post: 07-04-2007, 05:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •