XSSFSheet sheet = wb.getSheetAt(sheetNum);
if (sheet != null)
{
for (int rowNum = sheet.getFirstRowNum(); rowNum <= sheet.getLastRowNum(); rowNum++)
{
XSSFRow row = sheet.getRow(rowNum);
if (row != null)
{
int lastcell = row.getLastCellNum();
for (int k = 0; k < lastcell; k++)
{
XSSFCell cell = row.getCell(k);
if (cell != null)
{
switch (cell.getCellType())
{
case XSSFCell.CELL_TYPE_NUMERIC : {