Package org.compiere.print
Class ReportCtl
- java.lang.Object
-
- org.compiere.print.ReportCtl
-
public class ReportCtl extends Object
Report Controller.- Version:
- $Id: ReportCtl.java,v 1.3 2006/10/08 07:05:08 comdivision Exp $
- Author:
- Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
- FR [ 1866739 ] ReportCtl: use printformat from the transient/serializable
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_PRINT_FORMATDeprecated.Please useServerReportCtl.PARAM_PRINT_FORMATstatic StringPARAM_PRINT_INFODeprecated.Please useServerReportCtl.PARAM_PRINT_INFOstatic StringPARAM_PRINTER_NAMEDeprecated.Please useServerReportCtl.PARAM_PRINTER_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReportViewerProvidergetReportViewerProvider()static voidpreview(ReportEngine re)Launch viewer for reportstatic booleanstart(IProcessUI parent, int WindowNo, ProcessInfo pi)Create Report.static booleanstart(IProcessUI parent, int WindowNo, ProcessInfo pi, boolean IsDirectPrint)Create Report.static booleanstart(ProcessInfo pi, boolean IsDirectPrint)Create Report.static booleanstartCheckPrint(int C_Payment_ID, boolean IsDirectPrint)Start Check Print.static booleanstartDocumentPrint(int type, int Record_ID, boolean IsDirectPrint)Start Document Print for Type.static booleanstartDocumentPrint(int type, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint)Start Document Print for Type.static booleanstartDocumentPrint(int type, MPrintFormat customPrintFormat, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint, String printerName)Start Document Print for Type with specified printer.static booleanstartDocumentPrint(int type, MPrintFormat customPrintFormat, int Record_ID, IProcessUI parent, int WindowNo, String printerName)Start Document Print for Type with specified printer.static booleanstartFinReport(ProcessInfo pi)Start Financial Report.static booleanstartFinReport(ProcessInfo pi, int WindowNo)Start Financial Report.static booleanstartStandardReport(ProcessInfo pi)Start Standard Reportstatic booleanstartStandardReport(ProcessInfo pi, boolean IsDirectPrint)Start Standard Reportstatic booleanstartStandardReport(ProcessInfo pi, int WindowNo)Start Standard Reportstatic booleanstartStandardReport(ProcessInfo pi, int WindowNo, boolean IsDirectPrint)Start Standard Report
-
-
-
Field Detail
-
PARAM_PRINTER_NAME
public static final String PARAM_PRINTER_NAME
Deprecated.Please useServerReportCtl.PARAM_PRINTER_NAME- See Also:
- Constant Field Values
-
PARAM_PRINT_FORMAT
public static final String PARAM_PRINT_FORMAT
Deprecated.Please useServerReportCtl.PARAM_PRINT_FORMAT- See Also:
- Constant Field Values
-
PARAM_PRINT_INFO
public static final String PARAM_PRINT_INFO
Deprecated.Please useServerReportCtl.PARAM_PRINT_INFO- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public static boolean start(ProcessInfo pi, boolean IsDirectPrint)
Create Report. Called from ProcessCtl. - Check special reports first, if not, create standard Report- Parameters:
pi- process infoIsDirectPrint- if true, prints directly - otherwise View- Returns:
- true if created
-
start
public static boolean start(IProcessUI parent, int WindowNo, ProcessInfo pi, boolean IsDirectPrint)
Create Report. Called from ProcessCtl. - Check special reports first, if not, create standard Report- Parameters:
parent- The window which invoked the printingWindowNo- The windows number which invoked the printingpi- process infoIsDirectPrint- if true, prints directly - otherwise View- Returns:
- true if created
-
start
public static boolean start(IProcessUI parent, int WindowNo, ProcessInfo pi)
Create Report. Called from ProcessCtl. - Check special reports first, if not, create standard Report- Parameters:
parent- The window which invoked the printingWindowNo- The windows number which invoked the printingpi- process info- Returns:
- true if created
-
startStandardReport
public static boolean startStandardReport(ProcessInfo pi, boolean IsDirectPrint)
Start Standard Report. - Get Table Info and submit- Parameters:
pi- Process InfoIsDirectPrint- if true, prints directly - otherwise View- Returns:
- true if OK
-
startStandardReport
public static boolean startStandardReport(ProcessInfo pi, int WindowNo, boolean IsDirectPrint)
Start Standard Report. - Get Table Info and submit- Parameters:
pi- Process InfoWindowNo- The windows number which invoked the printingIsDirectPrint- if true, prints directly - otherwise View- Returns:
- true if OK
-
startStandardReport
public static boolean startStandardReport(ProcessInfo pi)
Start Standard Report. - Get Table Info and submit.
A report can be created from:- attached MPrintFormat, if any (see
ProcessInfo.setTransientObject(Object),ProcessInfo.setSerializableObject(java.io.Serializable) - process information (AD_Process.AD_PrintFormat_ID, AD_Process.AD_ReportView_ID)
- Parameters:
pi- Process Info- Returns:
- true if OK
- attached MPrintFormat, if any (see
-
startStandardReport
public static boolean startStandardReport(ProcessInfo pi, int WindowNo)
Start Standard Report. - Get Table Info and submit.
A report can be created from:- attached MPrintFormat, if any (see
ProcessInfo.setTransientObject(Object),ProcessInfo.setSerializableObject(java.io.Serializable) - process information (AD_Process.AD_PrintFormat_ID, AD_Process.AD_ReportView_ID)
- Parameters:
pi- Process InfoWindowNo- The windows number which invoked the printing- Returns:
- true if OK
- attached MPrintFormat, if any (see
-
startFinReport
public static boolean startFinReport(ProcessInfo pi)
Start Financial Report.- Parameters:
pi- Process Info- Returns:
- true if OK
-
startFinReport
public static boolean startFinReport(ProcessInfo pi, int WindowNo)
Start Financial Report.- Parameters:
pi- Process InfoWindowNo- The windows number which invoked the printing- Returns:
- true if OK
-
startDocumentPrint
public static boolean startDocumentPrint(int type, int Record_ID, boolean IsDirectPrint)Start Document Print for Type. Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint- Parameters:
type- document type in ReportEngineRecord_ID- idIsDirectPrint- if true, prints directly - otherwise View- Returns:
- true if success
-
startDocumentPrint
public static boolean startDocumentPrint(int type, MPrintFormat customPrintFormat, int Record_ID, IProcessUI parent, int WindowNo, String printerName)Start Document Print for Type with specified printer. Always direct print.- Parameters:
type- document type in ReportEnginecustomPrintFormat- Custom print format. Can be null.Record_ID- idparent- The window which invoked the printingWindowNo- The windows number which invoked the printingprinterName- Specified printer name- Returns:
- true if success
-
startDocumentPrint
public static boolean startDocumentPrint(int type, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint)Start Document Print for Type. Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint- Parameters:
type- document type in ReportEngineRecord_ID- idparent- The window which invoked the printingWindowNo- The windows number which invoked the printingIsDirectPrint- if true, prints directly - otherwise View- Returns:
- true if success
-
startDocumentPrint
public static boolean startDocumentPrint(int type, MPrintFormat customPrintFormat, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint, String printerName)Start Document Print for Type with specified printer.- Parameters:
type- document type in ReportEngineRecord_ID- idparent- The window which invoked the printingWindowNo- The windows number which invoked the printingprinterName- Specified printer name- Returns:
- true if success
-
startCheckPrint
public static boolean startCheckPrint(int C_Payment_ID, boolean IsDirectPrint)Start Check Print. Find/Create- Parameters:
C_Payment_ID- PaymentIsDirectPrint- if true, prints directly - otherwise View- Returns:
- true if success
-
preview
public static void preview(ReportEngine re)
Launch viewer for report- Parameters:
re-
-
getReportViewerProvider
public static ReportViewerProvider getReportViewerProvider()
- Returns:
ReportViewerProvider
-
-