Package org.compiere.print
Class ServerReportCtl
java.lang.Object
org.compiere.print.ServerReportCtl
Static method for running of report at server side
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
runJasperProcess
(int Record_ID, ReportEngine re, boolean IsDirectPrint, String printerName) Runs a Jasper process that prints the recordstatic boolean
runJasperProcess
(int Record_ID, ReportEngine re, boolean IsDirectPrint, String printerName, ProcessInfo pi) Runs a Jasper process that prints the recordstatic boolean
start
(ProcessInfo pi) Create Report.
Called from ProcessCtl.
- Check special reports first (via AD_ProcesS_ID), if not, create standard Reportstatic boolean
startDocumentPrint
(int type, MPrintFormat customPrintFormat, int Record_ID, String printerName) Start Document Print for Type with specified printer.static boolean
startDocumentPrint
(int type, MPrintFormat customPrintFormat, int Record_ID, String printerName, ProcessInfo pi) Start Document Print for Type with specified printer.static boolean
Start Financial Report.static boolean
Start Standard Report.
- Get Table Info and submit.
A report can be created from: attached MPrintFormat, if any (seeProcessInfo.setTransientObject(Object)
,ProcessInfo.setSerializableObject(java.io.Serializable)
process information (AD_Process.AD_PrintFormat_ID, AD_Process.AD_ReportView_ID)static boolean
startStandardReport
(ProcessInfo pi, boolean IsDirectPrint) Start Standard Report.
- Get Table Info and submit
-
Field Details
-
PARAM_PRINTER_NAME
Constants used to pass process parameters to Jasper Process- See Also:
-
PARAM_PRINT_FORMAT
- See Also:
-
PARAM_PRINT_INFO
- See Also:
-
-
Constructor Details
-
ServerReportCtl
public ServerReportCtl()
-
-
Method Details
-
startDocumentPrint
public static boolean startDocumentPrint(int type, MPrintFormat customPrintFormat, int Record_ID, String printerName) Start Document Print for Type with specified printer.- Parameters:
type
- report engine document typecustomPrintFormat
-Record_ID
-printerName
-- Returns:
- true if success
-
startDocumentPrint
public static boolean startDocumentPrint(int type, MPrintFormat customPrintFormat, int Record_ID, String printerName, ProcessInfo pi) Start Document Print for Type with specified printer.- Parameters:
type
- document type in ReportEnginecustomPrintFormat
-Record_ID
- idprinterName
- Specified printer namepi
-- Returns:
- true if success
-
runJasperProcess
public static boolean runJasperProcess(int Record_ID, ReportEngine re, boolean IsDirectPrint, String printerName) Runs a Jasper process that prints the record- Parameters:
Record_ID
-re
-IsDirectPrint
-printerName
-- Returns:
-
runJasperProcess
public static boolean runJasperProcess(int Record_ID, ReportEngine re, boolean IsDirectPrint, String printerName, ProcessInfo pi) Runs a Jasper process that prints the record- Parameters:
Record_ID
-re
-IsDirectPrint
-printerName
-pi
-- Returns:
-
start
Create Report.
Called from ProcessCtl.
- Check special reports first (via AD_ProcesS_ID), if not, create standard Report- Parameters:
pi
- 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.
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
-
startFinReport
Start Financial Report.- Parameters:
pi
- Process Info- Returns:
- true if OK
-