Hi,
I am using the following code to read the Excel file
Workbook workbook = new Workbook();
workbook.open("D:/sample.xls",FileFormatType.EXCEL2003);
Worksheets worksheet = workbook.getWorksheets();
Workbook wb = new Workbook();
Worksheet sheet = wb.getWorksheets().getSheet(0);
// Access the "A1" cell in the sheet.
Cell cell = sheet.getCells().getCell("A1");
System.out.println(cell.toString());
int i = ((Integer)cell.getValue()).intValue();
System.out.println(i);
It is giving me null pointer exception at cell.getValue().Can anybody help?