Package org.efs.openreports.engine.input

Examples of org.efs.openreports.engine.input.ReportEngineInput


      reportParameters.put(ORStatics.REPORT_DIR, new File(directoryProvider.getReportDirectory()));
      //
     
      reportLogProvider.insertReportLog(reportLog);     
     
      ReportEngineInput reportInput = new ReportEngineInput(report, reportParameters);
      reportInput.setExportType(ExportType.findByCode(reportSchedule.getExportType()));
            reportInput.setXmlInput(reportSchedule.getXmlInput());
            reportInput.setLocale(reportSchedule.getLocale());
     
      if (report.isJasperReport())
      {
        // add any charts
        if (report.getReportChart() != null)
        {
          log.debug("Adding chart: " + report.getReportChart().getName());
       
          ChartReportEngine chartEngine = new ChartReportEngine(
              dataSourceProvider, directoryProvider, propertiesProvider);
         
          ChartEngineOutput chartOutput = (ChartEngineOutput) chartEngine.generateReport(reportInput);
       
          reportParameters.put("ChartImage", chartOutput.getContent());       
        }

        if (report.isVirtualizationEnabled())
        {
          log.debug("Virtualization Enabled");
          virtualizer = new JRFileVirtualizer(2, directoryProvider.getTempDirectory());
          reportParameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer);
        }
       
        reportInput.setParameters(reportParameters);
        reportInput.setInlineImages(true);       
      }
     
      ReportEngine reportEngine = ReportEngineHelper.getReportEngine(report,
          dataSourceProvider, directoryProvider, propertiesProvider)
      reportEngine.setApplicationContext(appContext);
View Full Code Here


                    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());
View Full Code Here

      log.debug("Starting Query Report: " + report.getName());
      log.debug("Query: " + report.getQuery());

      reportLogProvider.insertReportLog(reportLog);   
     
      ReportEngineInput input = new ReportEngineInput(report, reportParameters);
     
      if (report.isJFreeReport())
      {
        JFreeReportEngine jfreeReportEngine = new JFreeReportEngine(
            dataSourceProvider, directoryProvider, propertiesProvider);
View Full Code Here

    {
      log.debug("Starting JXLS Report: " + report.getName());     

      reportLogProvider.insertReportLog(reportLog);

      ReportEngineInput input = new ReportEngineInput(report, parameters);
     
      JXLSReportEngine reportEngine = new JXLSReportEngine(
            dataSourceProvider, directoryProvider, propertiesProvider);
       
      ReportEngineOutput output = reportEngine.generateReport(input);
View Full Code Here

        log.debug("Virtualization Enabled");
        virtualizer = new JRFileVirtualizer(2, directoryProvider.getTempDirectory());
        reportParameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer);
      }

      ReportEngineInput reportInput = new ReportEngineInput(report, reportParameters);
      reportInput.setExportType(exportType);
      reportInput.setImagesMap(imagesMap);

      // add any charts
      if (report.getReportChart() != null)
      {
        log.debug("Adding chart: " + report.getReportChart().getName());
View Full Code Here

      reportLogProvider.insertReportLog(reportLog);       
     
      ChartReportEngine chartReportEngine = new ChartReportEngine(
          dataSourceProvider, directoryProvider, propertiesProvider);

      ReportEngineInput input = new ReportEngineInput(report, reportParameters);

      ChartEngineOutput chartOutput = (ChartEngineOutput) chartReportEngine
          .generateReport(input)
     
      chartValues = chartOutput.getChartValues();
View Full Code Here

TOP

Related Classes of org.efs.openreports.engine.input.ReportEngineInput

Copyright © 2018 www.massapicom. 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.