From 1443714128f1761e07918437303af740f573bbca Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Mon, 11 Aug 2008 19:30:41 +0000 Subject: [PATCH] [ 2011567 ] Implement background image for Document printed http://sourceforge.net/tracker/?func=detail&atid=879335&aid=2011567&group_id=176962 --- client/src/org/compiere/print/ReportCtl.java | 29 ++++++++++---------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/client/src/org/compiere/print/ReportCtl.java b/client/src/org/compiere/print/ReportCtl.java index ca79b7c17a..23e3a724f9 100644 --- a/client/src/org/compiere/print/ReportCtl.java +++ b/client/src/org/compiere/print/ReportCtl.java @@ -258,24 +258,25 @@ public class ReportCtl return false; } - //if(re.getPrintFormat() != null && re.getPrintFormat().getJasperProcess_ID() > 0) - if(re.getPrintFormat().getJasperProcess_ID() > 0) + if(re.getPrintFormat() != null) { - ProcessInfo pi = new ProcessInfo ("", re.getPrintFormat().getJasperProcess_ID()); - pi.setPrintPreview( !IsDirectPrint ); - pi.setRecord_ID ( Record_ID ); - // Execute Process - ProcessCtl worker = ProcessCtl.process(parent, WindowNo, pi, null); - } - else - { - createOutput(re, !IsDirectPrint); - if (IsDirectPrint) + if(re.getPrintFormat().getJasperProcess_ID() > 0) { - ReportEngine.printConfirm (type, Record_ID); + ProcessInfo pi = new ProcessInfo ("", re.getPrintFormat().getJasperProcess_ID()); + pi.setPrintPreview( !IsDirectPrint ); + pi.setRecord_ID ( Record_ID ); + // Execute Process + ProcessCtl worker = ProcessCtl.process(parent, WindowNo, pi, null); + } + else + { + createOutput(re, !IsDirectPrint); + if (IsDirectPrint) + { + ReportEngine.printConfirm (type, Record_ID); + } } } - return true; } // StartDocumentPrint