ExcelDataWorkbook

ExcelDataWorkbook class

Represents a workbook that provides access to Excel data for general use.

ExcelDataWorkbook

NameDescription
ExcelDataWorkbook(String)Initializes a new instance using the specified file path.

Parameters:

NameTypeDescription
filePathStringThe full path to the Excel workbook file.

Returns: ExcelDataWorkbook

Error

ErrorCondition
FileNotFoundExceptionThrown when the specified file does not exist.

createExcelDataWorkbookFromStream

NameDescription
createExcelDataWorkbookFromStream (ReadStream, Function)Initializes a new instance of the class using the provided stream.

Parameters:

NameTypeDescription
streamReadStreamA stream containing the Excel workbook data.
callbackFunctioncallback(error, item) - Callback to be called when the class is created, item is the new instance of the ExcelDataWorkbook

Returns: ExcelDataWorkbook


getCell

NameDescription
getCell (int, int, int)Retrieves a cell from the specified worksheet using its index and cell coordinates.

Parameters:

NameTypeDescription
worksheetIndexintZero-based index of the worksheet.
rowintZero-based row index of the cell.
columnintZero-based column index of the cell.

Returns: ExcelDataCell


getCell

NameDescription
getCell (String, int, int)Retrieves a cell from the specified worksheet using its name and cell coordinates.

Parameters:

NameTypeDescription
worksheetNameStringThe name of the worksheet.
rowintZero-based row index of the cell.
columnintZero-based column index of the cell.

Returns: ExcelDataCell


getCell

NameDescription
getCell (int, String)Retrieves a cell from the specified worksheet using its index and Excel-style cell name (e.g., “B2”).

Parameters:

NameTypeDescription
worksheetIndexintZero-based index of the worksheet.
cellNameStringThe Excel-style cell reference (e.g., “A1”, “C5”).

Returns: ExcelDataCell


getCell

NameDescription
getCell (String, String)Retrieves a cell from the specified worksheet using Excel-style cell name (e.g., “B2”).

Parameters:

NameTypeDescription
worksheetNameStringThe name of the worksheet.
cellNameStringThe Excel-style cell reference (e.g., “A1”, “C5”).

Returns: ExcelDataCell


getCells

NameDescription
getCells (String, boolean)Retrieves a collection of cells from the workbook that match the specified formula.

Parameters:

NameTypeDescription
formulaStringA formula or range expression (e.g., “Sheet1!A1:B3”) used to identify target cells.
skipHiddenCellsbooleanIf true, hidden cells (e.g., in hidden rows or columns) will be excluded from the result.

Returns: List, ArrayList


getChartsFromWorksheet

NameDescription
getChartsFromWorksheet (String)Retrieves a dictionary containing the indexes and names of all charts in the specified worksheet of an Excel workbook.

Parameters:

NameTypeDescription
worksheetNameStringThe name of the worksheet to search for charts.

Returns: Dictionary


getWorksheetNames

NameDescription
getWorksheetNames ()Retrieves the names of all worksheets contained in the Excel workbook.

Returns: List, ArrayList