src/org/tiefaces/components/websheet/utility/WebSheetUtility.java
private static int getSheetRightColFromDimension(
			final XSSFSheet xsheet) {
		CTSheetDimension dimension = xsheet.getCTWorksheet().getDimension();
		String sheetDimensions = dimension.getRef();
		if (sheetDimensions.indexOf(':') < 0) {
			return -1;
		} else {
			return CellRangeAddress.valueOf(sheetDimensions)
					.getLastColumn();
		}
	}
private static int getSheetRightColFromDimension(
			final XSSFSheet xsheet) {
		CTSheetDimension dimension = xsheet.getCTWorksheet().getDimension();
		String sheetDimensions = dimension.getRef();
		if (sheetDimensions.indexOf(':') < 0) {
			return -1;
		} else {
			return CellRangeAddress.valueOf(sheetDimensions)
					.getLastColumn();
		}
	}
private static int getSheetRightColFromDimension ( final XSSFSheet xsheet ) { CTSheetDimension dimension = xsheet . getCTWorksheet ( ) . getDimension ( ) ; String sheetDimensions = dimension . getRef ( ) ; if ( sheetDimensions . indexOf ( ' ' ) < 0 ) { return - 1 ; } else { return CellRangeAddress . valueOf ( sheetDimensions ) . getLastColumn ( ) ; } }
return the last column of the sheet.

@param xsheet
the xsheet
@return last column number (A column will return 0).
return the last column of the sheet .