comment ajouter une ligne dans fichier excel sans effacer tout le fichier poi_java
slt
comment ajouter une ligne dans un fichier excel sans effacer tout le fichier poi_java
c'est mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
// HSSFWorkbook wb = new HSSFWorkbook();
// HSSFSheet sheet = wb.getSheet("ma feuille");
//
// sheet.shiftRows(currentRow, sheet.getLastRowNum()+1, amount, true,true);
////sheet.shiftRows(1,sheet.getLastRowNum(), 1);
// HSSFRow row = sheet.createRow(1);
// HSSFCell cell = row.createCell((short)0);
// cell.setCellValue("rrr1");
//
// row.createCell((short)1).setCellValue("bbbnn1");
//
// FileOutputStream fileOut;
// try {
// fileOut = new FileOutputStream("bl.xls");
// wb.write(fileOut);
// fileOut.close();
// } catch (FileNotFoundException e) {
// e.printStackTrace();} |
svp aider mon a compléter mon code merci :calim2: