Examples of ReportEngine

  • org.eclipse.birt.report.engine.api.ReportEngine
  • org.efs.openreports.engine.ReportEngine

  • Examples of com.baulsupp.kolja.ansi.reports.engine.ReportEngine

        LogFormat format = SpringBeanLogFormatLoader.getLogFormat(appCtxt);

        final ReportPrinter reportPrinter = createReportPrinter(cmd, format);

        final ReportEngine reportEngine = createReportEngine(cmd, format);

        reportPrinter.setReportEngine(reportEngine);
        reportEngine.setReportPrinter(reportPrinter);

        String[] reportValues = cmd.getOptionValues("r");

        if (reportValues == null) {
          throw new RuntimeException("no report specified");
        }

        List<String> v = new ArrayList<String>(Arrays.asList(reportValues));

        List<String> filenames = unfutzArgs(v);

        log.info("reports " + v);
        log.info("files " + filenames);

        reportEngine.setReportDescriptions(v);

        List<File> commandFiles = commandFiles(filenames);

        reportEngine.initialise();

        reportEngine.process(commandFiles);

        reportEngine.completed();
      }
    View Full Code Here

    Examples of com.baulsupp.kolja.ansi.reports.engine.ReportEngine

          reportEngineFactory = builder.create(cmd.getOptionValue('g'));
        } else {
          reportEngineFactory = new DefaultReportEngineFactory();
        }

        ReportEngine reportEngine = reportEngineFactory.createEngine();

        reportEngine.setLogFormat(format);

        return reportEngine;
      }
    View Full Code Here

    Examples of org.compiere.print.ReportEngine

       @param file output file
       *  @return file if success
       */
      public File createPDF (File file)
      {
        ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.INVOICE, getC_Invoice_ID(), get_TrxName());
        if (re == null)
          return null;
        return re.getPDF(file);
      //  createPDF
    View Full Code Here

    Examples of org.compiere.print.ReportEngine

       @param file output file
       *  @return file if success
       */
      public File createPDF (File file)
      {
        ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.ORDER, getC_Order_ID(), get_TrxName());
        if (re == null)
          return null;
        return re.getPDF(file);
      //  createPDF
    View Full Code Here

    Examples of org.compiere.print.ReportEngine

       @param file output file
       *  @return file if success
       */
      public File createPDF (File file)
      {
        ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.SHIPMENT, getM_InOut_ID(), get_TrxName());
        if (re == null)
          return null;
        return re.getPDF(file);
      //  createPDF
    View Full Code Here

    Examples of org.compiere.print.ReportEngine

              DocumentNo,
              X_C_Invoice.Table_ID,
              C_Invoice_ID,
              C_BPartner_ID);
            info.setCopies(copies);
            ReportEngine re = new ReportEngine(getCtx(), format, query, info);
            boolean printed = false;
            if (p_EMailPDF)
            {
              String subject = mText.getMailHeader() + " - " + DocumentNo;
              EMail email = client.createEMail(to.getEMail(), subject, null);
              if (!email.isValid())
              {
                addLog (C_Invoice_ID, null, null,
                  DocumentNo + " @RequestActionEMailError@ Invalid EMail: " + to);
                errors++;
                continue;
              }
              mText.setUser(to);          //  Context
              mText.setBPartner(C_BPartner_ID)//  Context
              mText.setPO(new MInvoice(getCtx(), C_Invoice_ID, get_TrxName()));
              String message = mText.getMailText(true);
              if (mText.isHtml())
                email.setMessageHTML(subject, message);
              else
              {
                email.setSubject (subject);
                email.setMessageText (message);
              }
              //
              File invoice = null;
              if (!Ini.isClient())
                invoice = new File(MInvoice.getPDFFileName(documentDir, C_Invoice_ID));
              File attachment = re.getPDF(invoice);
              log.fine(to + " - " + attachment);
              email.addAttachment(attachment);
              //
              String msg = email.send();
              MUserMail um = new MUserMail(mText, getAD_User_ID(), email);
              um.save();
              if (msg.equals(EMail.SENT_OK))
              {
                addLog (C_Invoice_ID, null, null,
                  DocumentNo + " @RequestActionEMailOK@ - " + to.getEMail());
                count++;
                printed = true;
              }
              else
              {
                addLog (C_Invoice_ID, null, null,
                  DocumentNo + " @RequestActionEMailError@ " + msg
                  + " - " + to.getEMail());
                errors++;
              }
            }
            else
            {
              re.print();
              count++;
              printed = true;
            }
            //  Print Confirm
            if (printed)
    View Full Code Here

    Examples of org.eclipse.birt.report.engine.api.ReportEngine

      private static void initEngine() {
        EngineConfig conf = new EngineConfig();

        // Create new Report engine based off of the configuration
        engine = new ReportEngine(conf);

        // With our new engine, lets try to open the report design
        try {
          runnable = engine.openReportDesign(outputReportFile);
        } catch (Exception e) {
    View Full Code Here

    Examples of org.efs.openreports.engine.ReportEngine

           
            reportInput.setParameters(reportParameters);
            reportInput.setInlineImages(true);       
          }
         
          ReportEngine reportEngine = ReportEngineHelper.getReportEngine(report,
              dataSourceProvider, directoryProvider, propertiesProvider)
          reportEngine.setApplicationContext(appContext);
         
          ReportEngineOutput reportOutput = reportEngine.generateReport(reportInput);           
              
                String[] deliveryMethods = reportSchedule.getDeliveryMethods();     
               
                if (deliveryMethods == null || deliveryMethods.length == 0)
                {
    View Full Code Here

    Examples of org.efs.openreports.engine.ReportEngine

                        reportLog = new ReportLog(user, report, new Date());
                        reportLog.setExportType(reportInput.getExportType().getCode());
                       
                        reportLog = reportLogProvider.insertReportLog(reportLog);              
                                     
                        ReportEngine reportEngine = ReportEngineHelper.getReportEngine(report,
                                dataSourceProvider, directoryProvider, propertiesProvider);
                       
                        ReportEngineInput engineInput = new ReportEngineInput(report, buildParameterMap(reportInput, report));
                        engineInput.setExportType(reportInput.getExportType());
                        engineInput.setXmlInput(reportInput.getXmlInput());
                        engineInput.setLocale(ORUtil.getLocale(reportInput.getLocale()));
                       
                        ReportEngineOutput reportEngineOutput = reportEngine.generateReport(engineInput);
                       
                        reportOutput.setContent(reportEngineOutput.getContent());
                        reportOutput.setContentType(reportEngineOutput.getContentType());
                        reportOutput.setContentExtension(reportEngineOutput.getContentExtension());
                       
    View Full Code Here

    Examples of org.efs.openreports.engine.ReportEngine

            reportProvider.updateReport(report);
          }
               
                if (submitLoad != null || submitLoadAndCreate != null)
                {
                    ReportEngine engine = ReportEngineHelper.getReportEngine(report,
                            dataSourceProvider, directoryProvider, propertiesProvider);    
                                   
                    List<ReportParameter> parameters = engine.buildParameterList(report);                   
                    for (int i=0; i < parameters.size(); i++)
                    {
                        ReportParameter designParameter = parameters.get(i);
                       
                        ReportParameter param =
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.