From 2b219c14d6c6bc9743b302d629b73b13cd7fb135 Mon Sep 17 00:00:00 2001 From: usrdno Date: Mon, 22 Mar 2010 10:42:35 +0000 Subject: [PATCH] Minor update. Forgot to add override printer name parameter to the arguments passed to Jasper Reports. BF 2973169 - Jasper documents always prints on system default printer. Now documents are printed on the printer selected in Adempiere or the printer specified on the print format (as it works with the old reports). Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2973169 --- client/src/org/compiere/print/ReportCtl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/org/compiere/print/ReportCtl.java b/client/src/org/compiere/print/ReportCtl.java index e1b13b2f2d..e713d1729c 100644 --- a/client/src/org/compiere/print/ReportCtl.java +++ b/client/src/org/compiere/print/ReportCtl.java @@ -336,6 +336,7 @@ public class ReportCtl if (printerName!=null && printerName.trim().length()>0) { // Override printer name pip = new ProcessInfoParameter(PARAM_PRINTER_NAME, printerName, null, null, null); + jasperPrintParams.add(pip); } pip = new ProcessInfoParameter(PARAM_PRINT_FORMAT, format, null, null, null); jasperPrintParams.add(pip);