I have successfully generated an excel file using apache poi 3.10, the program only runs as expected on 32bit systems.
BUT when tried to run it on 64bit systems, most of the cells data are left out, they simply don't show up (but the same code will work just fine on 32bit systems). what can I do so that all the generated cell data can show even on 64bit systems?
HSSFWorkbook my_xls_workbook = new HSSFWorkbook(input_document);
HSSFSheet my_worksheet = my_xls_workbook.getSheetAt(0);
Cell cell = null;
cell = my_worksheet.getRow(0).getCell(10);
cell.setCellValue(nme.getText());
cell = my_worksheet.getRow(3).getCell(6);
cell.setCellValue(frm.getText);
cell = my_worksheet.getRow(4).getCell(3);
cell.setCellValue(empid);
//Closing InputStream
input_document.close();
FileOutputStream output_file =new FileOutputStream(new File("C:PayslipG.xls"));
//write data
my_xls_workbook.write(output_file);
//closing stream
output_file.close();
Thanks!