2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: lionel - lionel82 Closing a report from within java application 2006-04-06 01:54 I'm trying to close my report from within my application but it's not working. Here's the exact code that I tried: JasperPrint jp = JasperFillManager.fillReport( COMPILED_REPORT, parameters, DataStore.getConn()); viewer = new JasperViewer(jp, false); viewer.viewReport(jp, false); //and these are all the attempts to close the window viewer.setVisible(false); viewer.setEnabled(false); viewer.dispose(); By: Nacor - nacor RE: Closing a report from within java application 2006-04-06 02:45 JasperViewer.viewReport is a static method ! Try the functionality around JRViewer. By: lionel - lionel82 RE: Closing a report from within java applica 2006-04-07 03:58 Great thanks. I don't know why it compiled considering they are static methods . . . 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