Jasper documents must be printed synchronously to preserve printing order.

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3010932
This commit is contained in:
usrdno 2010-06-07 09:09:36 +00:00
parent 2078c0abf6
commit 5ac61c4986
1 changed files with 9 additions and 1 deletions

View File

@ -326,6 +326,9 @@ public class ReportCtl
if(re.getPrintFormat()!=null) if(re.getPrintFormat()!=null)
{ {
MPrintFormat format = re.getPrintFormat(); MPrintFormat format = re.getPrintFormat();
// We have a Jasper Print Format
// ==============================
if(format.getJasperProcess_ID() > 0) if(format.getJasperProcess_ID() > 0)
{ {
ProcessInfo pi = new ProcessInfo ("", format.getJasperProcess_ID()); ProcessInfo pi = new ProcessInfo ("", format.getJasperProcess_ID());
@ -348,7 +351,10 @@ public class ReportCtl
// Execute Process // Execute Process
if (Ini.isClient()) if (Ini.isClient())
{ {
ProcessCtl.process(parent, WindowNo, pi, null); ProcessCtl.process(null, // Parent set to null for synchronous processing, see bugtracker 3010932
WindowNo,
pi,
null);
} }
else else
{ {
@ -368,6 +374,8 @@ public class ReportCtl
} }
} }
else else
// Standard Print Format (Non-Jasper)
// ==================================
{ {
createOutput(re, !IsDirectPrint, printerName); createOutput(re, !IsDirectPrint, printerName);
if (IsDirectPrint) if (IsDirectPrint)