[ 2011567 ] Implement background image for Document printed
http://sourceforge.net/tracker/?func=detail&atid=879335&aid=2011567&group_id=176962
This commit is contained in:
parent
4a62f95bae
commit
1443714128
|
|
@ -258,24 +258,25 @@ public class ReportCtl
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(re.getPrintFormat() != null && re.getPrintFormat().getJasperProcess_ID() > 0)
|
if(re.getPrintFormat() != null)
|
||||||
if(re.getPrintFormat().getJasperProcess_ID() > 0)
|
|
||||||
{
|
{
|
||||||
ProcessInfo pi = new ProcessInfo ("", re.getPrintFormat().getJasperProcess_ID());
|
if(re.getPrintFormat().getJasperProcess_ID() > 0)
|
||||||
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);
|
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;
|
return true;
|
||||||
} // StartDocumentPrint
|
} // StartDocumentPrint
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue