[ 1671212 ] JasperReport Printengine

Added compatibility for start and startDocumentPrint methods, following hengsin's advice.
This commit is contained in:
deathmeat 2007-03-02 13:07:59 +00:00
parent 42b4278269
commit 8e3b7ba645
1 changed files with 32 additions and 2 deletions

View File

@ -52,6 +52,22 @@ public class ReportCtl
* @param IsDirectPrint if true, prints directly - otherwise View
* @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)
{
s_log.info("start - " + pi);
@ -144,12 +160,26 @@ public class ReportCtl
return true;
} // startFinReport
/**
* Start Document Print for Type.
* Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint
* @param type document type in ReportEngine
* @param Record_ID id
* @param IsDirectPrint if true, prints directly - otherwise View
* @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
*/