Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2007, 03:32 PM
Member
 
Join Date: May 2007
Posts: 39
Alan is on a distinguished road
Slow reports in Netbeans
I create reports with ireport, and when I do a query in it, the report appears immediately, when I executed in java (netbeans), after 3 minutes (yes, 3!) appeared the report. why is it so slow?

Code:
public class cExport_thread extends Thread{ private Alumnos alu; private AccesoDatos con; /** Creates a new instance of cExport_thread */ public cExport_thread() { } public void run(){ con = new AccesoDatos ("developers","lania","com.mysql.jdbc.Driver","192.168.1.8","siau"); con.iniciar(); Connection conn=con.getConnection(); try{ File fdesign = new File ("C:\\SIAU\\Reportes\\reporte1.jasper"); String fileName="C:\\SIAU\\reportes\\reporte1.jasper"; // Ruta de archivo pdf de destino String destFileNamePdf="C:\\SIAU\\Reportes\\reporte1.pdf"; //Ruta de archivo xls de destino // String destFileNameXls="C:\\SIAU\\reportes\\reporte1.xls"; Map parameters = new HashMap(); parameters.put("P_alu_carrera", "01"); JasperPrint listo = JasperFillManager.fillReport (fdesign.getPath(),parameters,conn); JasperExportManager.exportReportToPdfFile(listo, destFileNamePdf); JasperViewer.viewReport(listo); // JRXlsExporter exporter = new JRXlsExporter(); //exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); //exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFileNameXls); //exporter.setParameter (JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE); //exporter.exportReport(); //System.exit(0); } catch (Exception e) { System.out.println(e.getMessage()); } }
If you have the solution, please help me

Last edited by Alan : 06-01-2007 at 02:40 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-29-2007, 04:47 PM
Member
 
Join Date: May 2007
Posts: 39
Nick15 is on a distinguished road
It's a little bit slow, but 3 minutes ??
do you have enough memory?

Last edited by Nick15 : 06-01-2007 at 02:02 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use unicode in iReport to produce reports nasir_7b Advanced Java 0 03-17-2008 12:53 PM
slow JasperReport bbq Advanced Java 3 02-11-2008 09:34 AM
PredifinedStatment is too slow for me? liorb Database 1 07-31-2007 05:53 PM
Problems with reports in iReport Albert Advanced Java 1 07-06-2007 06:47 PM
Reports in JasperReports Jack Advanced Java 2 07-04-2007 04:09 AM


All times are GMT +3. The time now is 02:27 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org