Examples of FlowReportProcessor


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

      printer.setUrlRewriter(computeUrlRewriter());

      final FlowHtmlOutputProcessor outputProcessor =
          new FlowHtmlOutputProcessor();

      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(false);
        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 InterceptingXmlTableOutputProcessor outputProcessor = new InterceptingXmlTableOutputProcessor
        (new NullOutputStream(), new XmlTableOutputProcessorMetaData
            (XmlTableOutputProcessorMetaData.PAGINATION_MANUAL, localFontRegistry));
    outputProcessor.setFlowSelector(new SinglePageFlowSelector(page, true));
    final ReportProcessor proc = new FlowReportProcessor(report, outputProcessor);
    proc.processReport();

    if (outputProcessor.getLogicalPageBox() == null)
    {
      Assert.fail("Did not find the requested page");
    }
View Full Code Here

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

    try
    {
      final XmlTableOutputProcessor outputProcessor =
          new XmlTableOutputProcessor(outputStream, new XmlTableOutputProcessorMetaData(
              XmlTableOutputProcessorMetaData.PAGINATION_MANUAL, localFontRegistry));
      final ReportProcessor streamReportProcessor = new FlowReportProcessor(report, outputProcessor);
      try
      {
        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

      if (validator.isValidForFastProcessing(report) == false)
      {
        final FlowExcelOutputProcessor target =
            new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
        target.setUseXlsxFormat(false);
        reportProcessor = new FlowReportProcessor(report, target);
      }
      else
      {
        reportProcessor = new FastExcelExportProcessor(report, out, false);
      }
View Full Code Here

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

      if (validator.isValidForFastProcessing(report) == false)
      {
        final FlowExcelOutputProcessor target =
            new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
        target.setUseXlsxFormat(true);
        reportProcessor = new FlowReportProcessor(report, target);
      }
      else
      {
        reportProcessor = new FastExcelExportProcessor(report, out, 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(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

        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.setUrlRewriter(new WebAppURLRewriter(urlPattern, request.getCharacterEncoding()));
    outputProcessor.setPrinter(printer);

    final FlowReportProcessor sp = new FlowReportProcessor(report, outputProcessor);
    sp.processReport();
    sp.close();
    zipRepository.close();
    request.getSession().setAttribute("report:" + report.getTitle(), out.toByteArray());
    return report.getTitle();
  }
View Full Code Here

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

        case EXCEL:
        {
          final FlowExcelOutputProcessor target =
              new FlowExcelOutputProcessor(report.getConfiguration(), outputStream, report.getResourceManager());
          reportProcessor = new FlowReportProcessor(report, target);
          break;
        }

        case HTML:
        {
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.