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
This commit is contained in:
parent
a50e471830
commit
2b219c14d6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue