if (printPreview) {
// preview is started in non_modal
JasperViewer.viewReport(jasperPrint, false);
} else {
exporter.exportReport();
}
} catch (JRException je) {
msg = "\nError printing card report:\nPlease check printer parameter.\n" + je.getMessage();
log.warning(msg);
throw new ControllerException(msg);