Bom dia a todos:
Estou tentando pegar o resultado da celula, mas ele só retorna vazio:
HSSFWorkbook objBook = new HSSFWorkbook();
HSSFSheet sheet = objBook.createSheet("planilha1");
String texto = "(1 - 1)";
HSSFRow row = sheet.createRow((short) 0);
HSSFCell cell = row.createCell((short) 0);
cell.setCellFormula(texto);
cell.getNumericCellValue(); // retorna 2.0
cell.getStringCellValue(); // retorna vazio
E se eu colocar um igual na String texto, ocorre erro:
Alguém me ajuda?
ehhe
Abraços.