Jump to content
We've recently updated our Privacy Statement, available here ×

Closing a report from within java application


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...