Class ServerReportCtl

java.lang.Object
org.compiere.print.ServerReportCtl

public class ServerReportCtl extends Object
  • Field Details

  • 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 -
      customPrintFormat -
      Record_ID -
      printerName -
      Returns:
    • 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 ReportEngine
      customPrintFormat -
      Record_ID - id
      printerName - Specified printer name
      pi -
      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

      public static boolean start(ProcessInfo pi)
      Create Report. Called from ProcessCtl. - Check special reports first, if not, create standard Report
      Parameters:
      pi - 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 Info
      IsDirectPrint - 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:
      1. attached MPrintFormat, if any (see ProcessInfo.setTransientObject(Object), ProcessInfo.setSerializableObject(java.io.Serializable)
      2. process information (AD_Process.AD_PrintFormat_ID, AD_Process.AD_ReportView_ID)
      Parameters:
      pi - Process Info
      Returns:
      true if OK
    • startFinReport

      public static boolean startFinReport(ProcessInfo pi)
      Start Financial Report.
      Parameters:
      pi - Process Info
      Returns:
      true if OK