Search in sources :

Example 6 with FormulaError

use of org.apache.poi.ss.usermodel.FormulaError in project poi by apache.

the class XSSFCell method setCellErrorValue.

/**
     * Set a error value for the cell
     *
     * @param errorCode the error value to set this cell to.  For formulas we'll set the
     *        precalculated value , for errors we'll set
     *        its value. For other types we will change the cell to an error
     *        cell and set its value.
     * @see FormulaError
     */
@Override
public void setCellErrorValue(byte errorCode) {
    FormulaError error = FormulaError.forInt(errorCode);
    setCellErrorValue(error);
}
Also used : FormulaError(org.apache.poi.ss.usermodel.FormulaError)

Aggregations

FormulaError (org.apache.poi.ss.usermodel.FormulaError)6 Date (java.util.Date)2 Cell (org.apache.poi.ss.usermodel.Cell)2 CellCopyPolicy (org.apache.poi.ss.usermodel.CellCopyPolicy)2 Row (org.apache.poi.ss.usermodel.Row)2 CellReference (org.apache.poi.ss.util.CellReference)2 SXSSFWorkbook (org.apache.poi.xssf.streaming.SXSSFWorkbook)2 CTCell (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCell)2 CTRow (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRow)2 CellStyle (org.apache.poi.ss.usermodel.CellStyle)1 CellType (org.apache.poi.ss.usermodel.CellType)1 XSSFRichTextString (org.apache.poi.xssf.usermodel.XSSFRichTextString)1 STCellType (org.openxmlformats.schemas.spreadsheetml.x2006.main.STCellType)1