Package org.pentaho.reporting.engine.classic.core.modules.output.pageable.base

Examples of org.pentaho.reporting.engine.classic.core.modules.output.pageable.base.PageableReportProcessor


      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(configuration, outputStream);
        final PageableReportProcessor streamReportProcessor =
            new PageableReportProcessor(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


      final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
      localFontRegistry.initialize();
      final XmlTableOutputProcessor outputProcessor =
          new XmlTableOutputProcessor(outputStream, new XmlTableOutputProcessorMetaData(
              XmlTableOutputProcessorMetaData.PAGINATION_FULL, localFontRegistry));
      final ReportProcessor streamReportProcessor = new PageableReportProcessor(report, outputProcessor);
      try
      {
        streamReportProcessor.processReport();
      }
      finally
      {
        streamReportProcessor.close();
      }
    }
    finally
    {
      outputStream.close();
View Full Code Here

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

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

    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new SinglePageFlowSelector(page, false));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();

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

    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new StrictMultiPageFlowSelector(false, maxPage, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();

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

    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new MultiPageFlowSelector(false, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();


    List<LogicalPageBox> pages = outputProcessor.getPages();
    Assert.assertEquals("Pages have been generated", page.length, pages.size());
    return pages;
View Full Code Here

    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new StrictMultiPageFlowSelector(false, maxPage, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();

    List<LogicalPageBox> pages = outputProcessor.getPages();
    Assert.assertEquals("Pages have been generated", page.length, pages.size());
    return pages;
  }
View Full Code Here

    final OutputStream out = new NullOutputStream();
    try
    {
      final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(report.getConfiguration(), out,
          report.getResourceManager());
      final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
      proc.processReport();
      return true;
    }
    catch (ReportParameterValidationException e)
    {
      return true;
View Full Code Here

    try
    {
      final XmlTableOutputProcessor outputProcessor =
          new XmlTableOutputProcessor(outputStream, new XmlTableOutputProcessorMetaData(
              XmlTableOutputProcessorMetaData.PAGINATION_FULL, localFontRegistry));
      final ReportProcessor streamReportProcessor = new PageableReportProcessor(report, outputProcessor);
      try
      {
        streamReportProcessor.processReport();
      }
      finally
      {
        streamReportProcessor.close();
      }
    }
    finally
    {
      outputStream.close();
View Full Code Here

    final MemoryByteArrayOutputStream outputStream = new MemoryByteArrayOutputStream();
    try
    {
      final XmlPageOutputProcessor outputProcessor = new XmlPageOutputProcessor
          (outputStream, new XmlPageOutputProcessorMetaData(localFontRegistry));
      final PageableReportProcessor streamReportProcessor =
          new PageableReportProcessor(report, outputProcessor);
      try
      {
        streamReportProcessor.processReport();
      }
      finally
      {
        streamReportProcessor.close();
      }
    }
    finally
    {
      outputStream.close();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.pageable.base.PageableReportProcessor

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.