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

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


  public static void createPageable(final MasterReport report, final OutputStream outputStream)
      throws ReportProcessingException
  {
    final XmlPageDebugOutputProcessor target = new XmlPageDebugOutputProcessor(report.getConfiguration(), outputStream);
    final PageableReportProcessor proc = new PageableReportProcessor(report, target);
    proc.processReport();
    proc.close();
  }
View Full Code Here


          final float linesPerInch = ParserUtil.parseFloat(report.getReportConfiguration().getConfigProperty
              (PlainTextPageableModule.LINES_PER_INCH), 6.0f);

          final PageableTextOutputProcessor outputProcessor = new PageableTextOutputProcessor
              (new TextFilePrinterDriver(bout, charPerInch, linesPerInch), report.getConfiguration());
          final PageableReportProcessor reportProcessor = new PageableReportProcessor(report, outputProcessor);

          reportProcessor.addReportProgressListener(progressDialog);
          progressDialog.setVisibleInEDT(true);

          reportProcessor.processReport();
          reportProcessor.close();
          bout.flush();
          reportProcessor.removeReportProgressListener(progressDialog);
        }
        finally
        {
          fout.close();
        }
View Full Code Here

        try
        {
          final BufferedOutputStream bout = new BufferedOutputStream(fout);
          final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(report.getConfiguration(), bout,
              report.getResourceManager());
          final PageableReportProcessor reportProcessor = new PageableReportProcessor(report, outputProcessor);

          reportProcessor.addReportProgressListener(progressDialog);
          progressDialog.setVisibleInEDT(true);

          reportProcessor.processReport();
          reportProcessor.close();
          bout.flush();
          reportProcessor.removeReportProgressListener(progressDialog);
        }
        finally
        {
          fout.close();
        }
View Full Code Here

    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
    {
      out = new BufferedOutputStream(new FileOutputStream(new File(fileName)));
      final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(report.getConfiguration(), out,
          report.getResourceManager());
      final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
      proc.processReport();

      out.close();
      return true;
    }
    catch (Exception e)
View Full Code Here

      // cpi = 15, lpi = 10
      final TextFilePrinterDriver pc = new TextFilePrinterDriver(fout, 15, 10);

      final PageableTextOutputProcessor outputProcessor = new PageableTextOutputProcessor(pc,
          report.getConfiguration());
      final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
      proc.processReport();
      proc.close();
      fout.close();
      return true;
    }
    catch (Exception e)
    {
View Full Code Here

    try
    {
      out = new BufferedOutputStream(new FileOutputStream(new File(fileName)));
      final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(report.getConfiguration(), out,
          report.getResourceManager());
      final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
      proc.processReport();
      proc.close();
      out.close();
      return true;
    }
    catch (Exception e)
    {
View Full Code Here

    final OutputStream fout = new BufferedOutputStream(new FileOutputStream(filename));
    // cpi = 15, lpi = 10
    final TextFilePrinterDriver pc = new TextFilePrinterDriver(fout, 15, 10);

    final PageableTextOutputProcessor outputProcessor = new PageableTextOutputProcessor(pc, report.getConfiguration());
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();
    proc.close();
    fout.close();
  }
View Full Code Here

      try
      {
        final PageableExcelOutputProcessor outputProcessor =
            new PageableExcelOutputProcessor(configuration, outputStream, masterReport.getResourceManager());
        outputProcessor.setUseXlsxFormat(true);
        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

      printer.setDataWriter(getBulkLocation(), getBulkNameGenerator());
      printer.setUrlRewriter(computeUrlRewriter());

      final PageableHtmlOutputProcessor outputProcessor =
          new PageableHtmlOutputProcessor(configuration);
      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();
      }
    }
    catch (Throwable e)
    {
      setError(e);
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.