Package org.pentaho.reporting.engine.classic.core.modules.output.table.xls

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.xls.FlowExcelOutputProcessor


        tempFile.deleteOnExit();
        final FileOutputStream fout = new FileOutputStream(tempFile);
        try
        {
          final BufferedOutputStream bout = new BufferedOutputStream(fout);
          final FlowExcelOutputProcessor target =
              new FlowExcelOutputProcessor(report.getConfiguration(), bout, report.getResourceManager());
          target.setUseXlsxFormat(true);
          final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);

          reportProcessor.addReportProgressListener(progressDialog);
          progressDialog.setVisibleInEDT(true);
View Full Code Here


  }

  protected boolean writeXls( final MasterReport report, final OutputStream outputStream, final int yieldRate ) {
    boolean result = false;
    try {
      final FlowExcelOutputProcessor target =
          new FlowExcelOutputProcessor( report.getConfiguration(), outputStream, report.getResourceManager() );
      final FlowReportProcessor reportProcessor = new FlowReportProcessor( report, target );

      if ( isDefinedInput( AbstractJFreeReportComponent.WORKBOOK_PARAM ) ) {
        target.setTemplateInputStream( getInputStream( AbstractJFreeReportComponent.WORKBOOK_PARAM ) );
      }
      if ( yieldRate > 0 ) {
        reportProcessor.addReportProgressListener( new YieldReportListener( yieldRate ) );
      }
      reportProcessor.processReport();
View Full Code Here

  }

  @Override
  protected boolean performExport( final MasterReport report, final OutputStream outputStream ) {
    try {
      final FlowExcelOutputProcessor target =
          new FlowExcelOutputProcessor( report.getConfiguration(), outputStream, report.getResourceManager() );
      final FlowReportProcessor reportProcessor = new FlowReportProcessor( report, target );

      if ( isDefinedInput( AbstractJFreeReportComponent.WORKBOOK_PARAM ) ) {
        try {
          final InputStream inputStream = getInputStream( AbstractJFreeReportComponent.WORKBOOK_PARAM );
          target.setTemplateInputStream( inputStream );
        } catch ( Exception e ) {
          error(
              Messages.getInstance().getString( "JFreeReportExcelComponent.ERROR_0037_ERROR_READING_REPORT_INPUT" ), e ); //$NON-NLS-1$
          return false;
        }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.table.xls.FlowExcelOutputProcessor

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.