thoque Posted March 11, 2010 Share Posted March 11, 2010 Hi I am calling Jasper report from a (java based) ImageJ application - but whenever I close JasperReport it kills/Closes ImageJ as well which is unwanted.It there a different way to all Jasper report to avoid this?I got suggestion from ImageJ forum (thanks to Curtis) that: "The problems is most likely caused by the 'System.exit' being called by Jasper-report. If JasperDesignViewer is used, it adds a WindowListener to itself that calls exitForm() on close, which invokes System.exit(0), which shuts down the JVM." [/code]Any suggestion or solution please?ThanksTamjid Link to comment Share on other sites More sharing options...
sanbuddy Posted March 4, 2012 Share Posted March 4, 2012 Hey tamjid,There is a method in JasperViewer.viewReport() to override to fix the problem...JasperViewer.viewReport( JasperPrint jp ); andJasperViewer.viewReport( JasperPrint jp, isExitOnClose);Just pass false to isExitOnClose argument... Further more refer http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/faq.html#FAQ2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now