Class ExcelReportUtil
- java.lang.Object
-
- 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createXLS(MasterReport report, OutputStream outputStream)
static void
createXLS(MasterReport report, OutputStream outputStream, ReportProgressListener listener)
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, OutputStream outputStream, ReportProgressListener listener)
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.
-
-
-
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
-
createXLS
public static void createXLS(MasterReport report, OutputStream outputStream, ReportProgressListener listener) throws ReportProcessingException
- Throws:
ReportProcessingException
-
createXLSX
public static void createXLSX(MasterReport report, OutputStream outputStream, ReportProgressListener listener) throws ReportProcessingException
- Throws:
ReportProcessingException
-
-