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

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


    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


    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

    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

    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

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

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

        progressDialog.setModal(false);
        progressDialog.setVisible(true);
        proc.addReportProgressListener(progressDialog);
      }

      proc.processReport();

      if (statusListener != null)
      {
        statusListener.setStatus
            (StatusType.INFORMATION, messages.getString("PlainTextExportTask.USER_TASK_FINISHED"), null); //$NON-NLS-1$
View Full Code Here

      if (progressListener != null)
      {
        proc.addReportProgressListener(progressListener);
        progressListener.setVisible(true);
      }
      proc.processReport();
      if (statusListener != null)
      {
        statusListener.setStatus
            (StatusType.INFORMATION, messages.getString("PdfExportTask.USER_EXPORT_COMPLETE"), null); //$NON-NLS-1$
      }
View Full Code Here

    report.getReportHeader().addElement(bottomLabel);

    final PdfOutputProcessor outputProcessor =
        new TestPdfOutputProcessor(report.getConfiguration(), new NullOutputStream());
    final PageableReportProcessor reportProcessor = new PageableReportProcessor(report, outputProcessor);
    reportProcessor.processReport();
  }

  private static class TestPdfOutputProcessor extends PdfOutputProcessor
  {
    private TestPdfOutputProcessor(final Configuration configuration,
View Full Code Here

        printer.setDataWriter(data, new DefaultNameGenerator(data, "content"));
        printer.setUrlRewriter(new NullURLRewriter());
        outputProcessor.setPrinter(printer);

        final PageableReportProcessor sp = new PageableReportProcessor(report, outputProcessor);
        sp.processReport();
        sp.close();
        zipRepository.close();
        return out.toString("UTF-8");
      }
      catch (IOException ioe)
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.