Class FastExcelPrinter
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.ExcelPrinterBase
-
- org.pentaho.reporting.engine.classic.core.modules.output.fast.xls.FastExcelPrinter
-
public class FastExcelPrinter extends ExcelPrinterBase
-
-
Constructor Summary
Constructors Constructor Description FastExcelPrinter(SheetLayout sheetLayout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeSheet()
void
closeWorkbook(OutputStream outputStream)
protected CellStyleProducer
createCellStyleProducer(org.apache.poi.ss.usermodel.Workbook workbook)
void
endSection(Band band, ArrayList<CellLayoutInfo> backgroundCells)
protected org.apache.poi.ss.usermodel.Sheet
getSheet()
protected Object
getValueIfVisible(ReportElement content, Object value)
Determines if the element is marked as hidden and returns either the original value or null if hidden.org.apache.poi.ss.usermodel.Workbook
getWorkbook()
void
init(OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, ReportDefinition report)
void
print(CellLayoutInfo tableRectangle, ReportElement element, ExpressionRuntime runtime)
void
startSection(Band band, long[] cellHeights)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.ExcelPrinterBase
configureSheetColumnWidths, configureSheetPaperSize, configureSheetProperties, createImageCell, createWorkbook, getCellAt, getCellStyleProducer, getColorProducer, getConfig, getDrawingPatriarch, getFontColorProducer, getMetaData, getRowAt, getScaleFactor, getTemplateInputStream, handleValueType, init, initializeStyleProducers, isHeaderFooterValid, isInitialized, isUseXlsxFormat, isValidSheetName, makeUnique, openSheet, setTemplateInputStream, setUseXlsxFormat, splitAndQuoteExcelFormula
-
-
-
-
Constructor Detail
-
FastExcelPrinter
public FastExcelPrinter(SheetLayout sheetLayout)
-
-
Method Detail
-
init
public void init(OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, ReportDefinition report)
-
getSheet
protected org.apache.poi.ss.usermodel.Sheet getSheet()
- Specified by:
getSheet
in classExcelPrinterBase
-
getWorkbook
public org.apache.poi.ss.usermodel.Workbook getWorkbook()
- Specified by:
getWorkbook
in classExcelPrinterBase
-
startSection
public void startSection(Band band, long[] cellHeights)
-
endSection
public void endSection(Band band, ArrayList<CellLayoutInfo> backgroundCells)
-
createCellStyleProducer
protected CellStyleProducer createCellStyleProducer(org.apache.poi.ss.usermodel.Workbook workbook)
- Overrides:
createCellStyleProducer
in classExcelPrinterBase
-
closeSheet
public void closeSheet()
-
print
public void print(CellLayoutInfo tableRectangle, ReportElement element, ExpressionRuntime runtime) throws ContentProcessingException
- Throws:
ContentProcessingException
-
getValueIfVisible
protected Object getValueIfVisible(ReportElement content, Object value)
Determines if the element is marked as hidden and returns either the original value or null if hidden. This happens when an element is hidden and consumes space.- Returns:
- The original value or null if the element is marked as hidden.
-
closeWorkbook
public void closeWorkbook(OutputStream outputStream) throws IOException
- Throws:
IOException
-
-