Package org.compiere.print
Class ReportCtl
java.lang.Object
org.compiere.print.ReportCtl
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
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.Please useServerReportCtl.PARAM_PRINT_INFO
static final String
Deprecated.Please useServerReportCtl.PARAM_PRINTER_NAME
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReportViewerProvider
static void
preview
(ReportEngine re) Launch viewer for reportstatic boolean
start
(IProcessUI parent, int WindowNo, ProcessInfo pi) Create Report.static boolean
start
(IProcessUI parent, int WindowNo, ProcessInfo pi, boolean IsDirectPrint) Create Report.static boolean
start
(ProcessInfo pi, boolean IsDirectPrint) Create Report.static boolean
startCheckPrint
(int C_Payment_ID, boolean IsDirectPrint, MPInstance instance) Start Check Print.static boolean
startDocumentPrint
(int type, int Record_ID, boolean IsDirectPrint) Start Document Print for Type.static boolean
startDocumentPrint
(int type, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint) Start Document Print for Type.static boolean
startDocumentPrint
(int type, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint, MPInstance instance) Start Document Print for Type.static boolean
startDocumentPrint
(int type, MPrintFormat customPrintFormat, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint, String printerName, MPInstance instance) Start Document Print for Type with specified printer.static boolean
startDocumentPrint
(int type, MPrintFormat customPrintFormat, int Record_ID, IProcessUI parent, int WindowNo, String printerName) Start Document Print for Type with specified printer.static boolean
Start Financial Report.static boolean
startFinReport
(ProcessInfo pi, int WindowNo) Start Financial Report.static boolean
startFinReport
(ProcessInfo pi, int WindowNo, MPInstance instance) Start Financial Report.static boolean
Start Standard Reportstatic boolean
startStandardReport
(ProcessInfo pi, boolean IsDirectPrint) Start Standard Reportstatic boolean
startStandardReport
(ProcessInfo pi, int WindowNo) Start Standard Reportstatic boolean
startStandardReport
(ProcessInfo pi, int WindowNo, boolean IsDirectPrint) Start Standard Reportstatic boolean
startStandardReport
(ProcessInfo pi, int WindowNo, boolean IsDirectPrint, MPInstance instance) Start Standard Reportstatic boolean
startStandardReport
(ProcessInfo pi, int WindowNo, MPInstance instance) Start Standard Report
-
Field Details
-
PARAM_PRINTER_NAME
Deprecated.Please useServerReportCtl.PARAM_PRINTER_NAME
- See Also:
-
PARAM_PRINT_FORMAT
Deprecated.Please useServerReportCtl.PARAM_PRINT_FORMAT
- See Also:
-
PARAM_PRINT_INFO
Deprecated.Please useServerReportCtl.PARAM_PRINT_INFO
- See Also:
-
-
Method Details
-
start
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
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
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
Start Standard Report. - Get Table Info and submit- Parameters:
pi
- Process InfoIsDirectPrint
- if true, prints directly - otherwise View- Returns:
- true if OK
-
startStandardReport
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, int WindowNo, boolean IsDirectPrint, MPInstance instance) Start Standard Report. - Get Table Info and submit- Parameters:
pi
- Process InfoWindowNo
- The windows number which invoked the printingIsDirectPrint
- if true, prints directly - otherwise Viewinstance
- - AD_PInstance- Returns:
- true if OK
-
startStandardReport
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
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
-
startStandardReport
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 printinginstance
- - AD_PInstance- Returns:
- true if OK
- attached MPrintFormat, if any (see
-
startFinReport
Start Financial Report.- Parameters:
pi
- Process Info- Returns:
- true if OK
-
startFinReport
Start Financial Report.- Parameters:
pi
- Process InfoWindowNo
- The windows number which invoked the printing- Returns:
- true if OK
-
startFinReport
Start Financial Report.- Parameters:
pi
- Process InfoWindowNo
- The windows number which invoked the printinginstance
- - AD_PInstance- 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, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint, MPInstance instance) 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 Viewinstance
- - AD_PInstance- Returns:
- true if success
-
startDocumentPrint
public static boolean startDocumentPrint(int type, MPrintFormat customPrintFormat, int Record_ID, IProcessUI parent, int WindowNo, boolean IsDirectPrint, String printerName, MPInstance instance) 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 nameinstance
- - AD_PInstance- Returns:
- true if success
-
startCheckPrint
Start Check Print. Find/Create- Parameters:
C_Payment_ID
- PaymentIsDirectPrint
- if true, prints directly - otherwise Viewinstance
- - AD_PInstance- Returns:
- true if success
-
preview
Launch viewer for report- Parameters:
re
-
-
getReportViewerProvider
- Returns:
ReportViewerProvider
-
ServerReportCtl.PARAM_PRINT_FORMAT