[ 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:
vpj-cd 2008-08-11 19:30:41 +00:00
parent 4a62f95bae
commit 1443714128
1 changed files with 15 additions and 14 deletions

View File

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