| Author |
Jasper
|
Richard Mart�nez
Greenhorn
Joined: Apr 09, 2008
Posts: 2
|
|
Hi, Urgent!!! I have a problem, when I run a JasperReport's report at the preview view and close the window, it stop the Tomcat . I am testing from Eclipse with RAD (which have the tomcat plug in), but when I close the JasperReport preview window, the tomcat automatically stop!!!. How can I avoid that the Jasper "turn off" the Tomcat? Thanks in advance. trilcito
|
 |
Richard Mart�nez
Greenhorn
Joined: Apr 09, 2008
Posts: 2
|
|
I found out the fix: Error: JasperDesign jasperDesign = JRXmlLoader.load(reportFile); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); Connection conn = HelperDAO.getConnectionDS(); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn); JasperViewer.viewReport(jasperPrint); Solution Change: JasperViewer.viewReport(jasperPrint); for: JasperViewer.viewReport(jasperPrint, false); All fixed.
|
 |
 |
|
|
subject: Jasper
|
|
|