Jasperview closing the entire system

Asked

Viewed 119 times

3

I don’t even know how to explain it but I’ll try.

I have a system made in Javafx that displays reports with Jasper according to the selected item, until then everything quiet, when selecting an item and having printed works, but when closing the report generated by Jasperviewer, the whole system closes together and the strangest, without any error message.

Someone’s been through it?

1 answer

4


The problem that is happening is that the method show(), class JasperReportBuilder, by default it will true in EXIT_ON_CLOSED, simply have to pass false to the method, the class JasperReportBuilder has two show methods: show() and show(boolean exitOnClose).

 JasperReportBuilder.class.newInstance.show(false);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.