openExistingXSSFWorkbookReadOnly

fun openExistingXSSFWorkbookReadOnly(pathToWorkbook: Path): XSSFWorkbook?

IO exceptions are squelched in this method. If there is a problem, then null is returned. Opens an Apache POI XSSFWorkbook instance. The user is responsible for closing the workbook when done. Do not try to write to the returned workbook.

Return

an Apache POI XSSFWorkbook or null if there was a problem opening the workbook.

Parameters

pathToWorkbook

the path to a valid Excel xlsx workbook