org.pentaho.reporting.engine.classic.core.modules.output.table.xls
Class ExcelReportUtil

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.table.xls.ExcelReportUtil

public final class ExcelReportUtil
extends Object

Utility class to provide an easy to use default implementation of excel exports.

Author:
Thomas Morgner

Method Summary
static void createXLS(MasterReport report, OutputStream outputStream)
           
static void createXLS(MasterReport report, String filename)
          Saves a report to Excel format.
static void createXLS(MasterReport report, String filename, boolean strict)
          Saves a report to Excel format.
static void createXLSX(MasterReport report, OutputStream outputStream)
           
static void createXLSX(MasterReport report, String filename)
          Saves a report to Excel format.
static void createXLSX(MasterReport report, String filename, boolean strict)
          Saves a report to Excel format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createXLSX

public static void createXLSX(MasterReport report,
                              String filename)
                       throws IOException,
                              ReportProcessingException
Saves a report to Excel format.

Parameters:
report - the report.
filename - target file name.
Throws:
ReportProcessingException - if the report processing failed.
IOException - if there was an IOerror while processing the report.

createXLSX

public static void createXLSX(MasterReport report,
                              String filename,
                              boolean strict)
                       throws IOException,
                              ReportProcessingException
Saves a report to Excel format.

Parameters:
report - the report.
filename - target file name.
strict - defines whether the strict layout mode should be activated.
Throws:
ReportProcessingException - if the report processing failed.
IOException - if there was an IOerror while processing the report.

createXLSX

public static void createXLSX(MasterReport report,
                              OutputStream outputStream)
                       throws ReportProcessingException
Throws:
ReportProcessingException

createXLS

public static void createXLS(MasterReport report,
                             String filename)
                      throws IOException,
                             ReportProcessingException
Saves a report to Excel format.

Parameters:
report - the report.
filename - target file name.
Throws:
ReportProcessingException - if the report processing failed.
IOException - if there was an IOerror while processing the report.

createXLS

public static void createXLS(MasterReport report,
                             String filename,
                             boolean strict)
                      throws IOException,
                             ReportProcessingException
Saves a report to Excel format.

Parameters:
report - the report.
filename - target file name.
strict - defines whether the strict layout mode should be activated.
Throws:
ReportProcessingException - if the report processing failed.
IOException - if there was an IOerror while processing the report.

createXLS

public static void createXLS(MasterReport report,
                             OutputStream outputStream)
                      throws ReportProcessingException
Throws:
ReportProcessingException