[ 1671212 ] JasperReport Printengine
Added compatibility for start and startDocumentPrint methods, following hengsin's advice.
This commit is contained in:
parent
42b4278269
commit
8e3b7ba645
|
@ -52,6 +52,22 @@ public class ReportCtl
|
||||||
* @param IsDirectPrint if true, prints directly - otherwise View
|
* @param IsDirectPrint if true, prints directly - otherwise View
|
||||||
* @return true if created
|
* @return true if created
|
||||||
*/
|
*/
|
||||||
|
static public boolean start (ProcessInfo pi, boolean IsDirectPrint)
|
||||||
|
{
|
||||||
|
return start(null, -1, pi, IsDirectPrint);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create Report.
|
||||||
|
* Called from ProcessCtl.
|
||||||
|
* - Check special reports first, if not, create standard Report
|
||||||
|
*
|
||||||
|
* @param parent The window which invoked the printing
|
||||||
|
* @param WindowNo The windows number which invoked the printing
|
||||||
|
* @param pi process info
|
||||||
|
* @param IsDirectPrint if true, prints directly - otherwise View
|
||||||
|
* @return true if created
|
||||||
|
*/
|
||||||
static public boolean start (ASyncProcess parent, int WindowNo, ProcessInfo pi, boolean IsDirectPrint)
|
static public boolean start (ASyncProcess parent, int WindowNo, ProcessInfo pi, boolean IsDirectPrint)
|
||||||
{
|
{
|
||||||
s_log.info("start - " + pi);
|
s_log.info("start - " + pi);
|
||||||
|
@ -143,8 +159,7 @@ public class ReportCtl
|
||||||
preview(re);
|
preview(re);
|
||||||
return true;
|
return true;
|
||||||
} // startFinReport
|
} // startFinReport
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start Document Print for Type.
|
* Start Document Print for Type.
|
||||||
* Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint
|
* Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint
|
||||||
|
@ -153,6 +168,21 @@ public class ReportCtl
|
||||||
* @param IsDirectPrint if true, prints directly - otherwise View
|
* @param IsDirectPrint if true, prints directly - otherwise View
|
||||||
* @return true if success
|
* @return true if success
|
||||||
*/
|
*/
|
||||||
|
public static boolean startDocumentPrint (int type, int Record_ID, boolean IsDirectPrint)
|
||||||
|
{
|
||||||
|
return startDocumentPrint(type, Record_ID, null, -1, IsDirectPrint);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start Document Print for Type.
|
||||||
|
* Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint
|
||||||
|
* @param type document type in ReportEngine
|
||||||
|
* @param Record_ID id
|
||||||
|
* @param parent The window which invoked the printing
|
||||||
|
* @param WindowNo The windows number which invoked the printing
|
||||||
|
* @param IsDirectPrint if true, prints directly - otherwise View
|
||||||
|
* @return true if success
|
||||||
|
*/
|
||||||
public static boolean startDocumentPrint (int type, int Record_ID, ASyncProcess parent, int WindowNo, boolean IsDirectPrint)
|
public static boolean startDocumentPrint (int type, int Record_ID, ASyncProcess parent, int WindowNo, boolean IsDirectPrint)
|
||||||
{
|
{
|
||||||
ReportEngine re = ReportEngine.get (Env.getCtx(), type, Record_ID);
|
ReportEngine re = ReportEngine.get (Env.getCtx(), type, Record_ID);
|
||||||
|
|
Loading…
Reference in New Issue