File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jasper

 
Richard Mart´┐Żnez
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic