Examples of FlowReportProcessor


Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

      }
      out = new BufferedOutputStream(new FileOutputStream(file));
      final FlowExcelOutputProcessor target =
          new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
      target.setUseXlsxFormat(true);
      final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);
      if (progressDialog != null)
      {
        progressDialog.setModal(false);
        progressDialog.setVisible(true);
        reportProcessor.addReportProgressListener(progressDialog);
      }
      reportProcessor.processReport();
      out.close();
      out = null;
      if (progressDialog != null)
      {
        reportProcessor.removeReportProgressListener(progressDialog);
      }

      if (statusListener != null)
      {
        statusListener.setStatus
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

        printer.setContentWriter(targetRoot,
            new DefaultNameGenerator(targetRoot, filename, suffix));
        printer.setDataWriter(dataRoot, new DefaultNameGenerator(dataRoot, "content")); //$NON-NLS-1$
        printer.setUrlRewriter(new FileSystemURLRewriter());
        outputProcessor.setPrinter(printer);
        sp = new FlowReportProcessor(report, outputProcessor);
      }
      if (progressDialog != null)
      {
        progressDialog.setModal(false);
        progressDialog.setVisible(true);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

      }
      out = new BufferedOutputStream(new FileOutputStream(file));
      final FlowExcelOutputProcessor target =
          new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
      target.setUseXlsxFormat(false);
      final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);
      if (progressDialog != null)
      {
        progressDialog.setModal(false);
        progressDialog.setVisible(true);
        reportProcessor.addReportProgressListener(progressDialog);
      }
      reportProcessor.processReport();
      out.close();
      out = null;
      if (progressDialog != null)
      {
        reportProcessor.removeReportProgressListener(progressDialog);
      }

      if (statusListener != null)
      {
        statusListener.setStatus
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

        final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
        printer.setContentWriter(root, new DefaultNameGenerator(root, "report.html")); //$NON-NLS-1$
        printer.setDataWriter(data, new DefaultNameGenerator(data, "content")); //$NON-NLS-1$
        printer.setUrlRewriter(new SingleRepositoryURLRewriter());
        outputProcessor.setPrinter(printer);
        sp = new FlowReportProcessor(report, outputProcessor);
      }
      if (progressDialog != null)
      {
        progressDialog.setModal(false);
        progressDialog.setVisible(true);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

      printer.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, filename, suffix));
      printer.setDataWriter(targetRoot, new DefaultNameGenerator(targetRoot, "content"));
      printer.setUrlRewriter(new FileSystemURLRewriter());
      outputProcessor.setPrinter(printer);

      final FlowReportProcessor sp = new FlowReportProcessor(report, outputProcessor);
      sp.processReport();
      sp.close();
    }
    catch (ContentIOException e)
    {
      throw new IOException("Failed to get or create the repository-root.");
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

      printer.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, filename, suffix));
      printer.setDataWriter(dataRoot, new DefaultNameGenerator(dataRoot, "content"));
      printer.setUrlRewriter(new FileSystemURLRewriter());
      outputProcessor.setPrinter(printer);

      final FlowReportProcessor sp = new FlowReportProcessor(report, outputProcessor);
      sp.processReport();
      sp.close();
    }
    catch (ContentIOException e)
    {
      throw new IOException("Failed to get repository-root.");
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

      printer.setContentWriter(root, new DefaultNameGenerator(root, filename));
      printer.setDataWriter(data, new DefaultNameGenerator(data, "content"));
      printer.setUrlRewriter(new SingleRepositoryURLRewriter());
      outputProcessor.setPrinter(printer);

      final FlowReportProcessor sp = new FlowReportProcessor(report, outputProcessor);
      sp.processReport();
      sp.close();
      zipRepository.close();
    }
    catch (IOException ioe)
    {
      throw ioe;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

      try
      {
        final FlowRTFOutputProcessor outputProcessor =
            new FlowRTFOutputProcessor(configuration, outputStream, masterReport.getResourceManager());
        final FlowReportProcessor streamReportProcessor =
            new FlowReportProcessor(masterReport, outputProcessor);
        try
        {
          final ReportProgressListener[] progressListeners = getReportProgressListeners();
          for (int i = 0; i < progressListeners.length; i++)
          {
            final ReportProgressListener listener = progressListeners[i];
            streamReportProcessor.addReportProgressListener(listener);
          }
          streamReportProcessor.processReport();
        }
        finally
        {
          streamReportProcessor.close();
        }
      }
      finally
      {
        outputStream.close();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

      final FlowCSVOutputProcessor outputProcessor =
          new FlowCSVOutputProcessor(configuration);
      outputProcessor.setContentLocation(contentLocation);
      outputProcessor.setContentNameGenerator(nameGenerator);

      final FlowReportProcessor streamReportProcessor =
          new FlowReportProcessor(masterReport, outputProcessor);
      try
      {
        final ReportProgressListener[] progressListeners = getReportProgressListeners();
        for (int i = 0; i < progressListeners.length; i++)
        {
          final ReportProgressListener listener = progressListeners[i];
          streamReportProcessor.addReportProgressListener(listener);
        }
        streamReportProcessor.processReport();
      }
      finally
      {
        streamReportProcessor.close();
      }
    }
    catch (Throwable e)
    {
      setError(e);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.FlowReportProcessor

      try
      {
        final FlowExcelOutputProcessor outputProcessor =
            new FlowExcelOutputProcessor(configuration, outputStream, masterReport.getResourceManager());
        outputProcessor.setUseXlsxFormat(true);
        final FlowReportProcessor streamReportProcessor =
            new FlowReportProcessor(masterReport, outputProcessor);
        try
        {
          final ReportProgressListener[] progressListeners = getReportProgressListeners();
          for (int i = 0; i < progressListeners.length; i++)
          {
            final ReportProgressListener listener = progressListeners[i];
            streamReportProcessor.addReportProgressListener(listener);
          }
          streamReportProcessor.processReport();
        }
        finally
        {
          streamReportProcessor.close();
        }
      }
      finally
      {
        outputStream.close();
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.