Jump to content
JasperReports Library 7.0 is now available ×

probs with viewer


MScalli

Recommended Posts

hi all.

first sry for my english ;)

 

hope anyone can help me.

have probs calling the viewer. i can call him without any problem, but if i close them the javaw.exe in the taskmanager stays open. for example.. i open 10 times the viewer, then i have 10 times the javax.exe in the manager.

must i close them manual???

 

heres my code

 

Code:

jasperReport=JasperCompileManager.compileReport(path_jrxml + "\" + fn_jrxml);
jasperPrint=JasperFillManager.fillReport(jasperReport, parameter, con);

viewer = new JRViewer(jasperPrint);
add(viewer);
setVisible(true);

 

plz help me!!

greetz

MScalli

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

no one know whats the failure???

i`ve tried to close the window later with the PID like

 

Tasklist /FI "PID eq 1234"

 

but it doesn´t works?!?!

 

why the javaw.exe doesn´t stop when i close the viewer.

plz help me.. can´t find any solution..

Link to comment
Share on other sites

Hi,

 

The three lines of code you posted have nothing to do with the JVM not closing.

And in general, this is not related to JasperReports.

 

Put away JR for a moment, comment all the lines that make JR calls and instead of adding the JRViewer there, add a simple JPanel.

 

The problem must be somewhere else in your code and you need to debug it.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

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...