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:
usrdno 2010-03-22 10:42:35 +00:00
parent a50e471830
commit 2b219c14d6
1 changed files with 1 additions and 0 deletions

View File

@ -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);