WorkBookHandle book = new WorkBookHandle("testxls.xls");
WorkSheetHandle sheet1 = book.getWorkSheet("Sheet1");
CellHandle cell = sheet1.getCell("B22");
to add a cell:
CellHandle cell = sheet1.add("Hello World","C22");
to add a numeric cell:
CellHandle cell = sheet1.add(Integer.valueOf(120),"C23");
to add a formula cell:
CellHandle cell = sheet1.add("=PI()","C24");
|
|
|
|
|
|