Devo esportare i dati presenti in un database su di un file Excel.
Qualcuno puō aiutarmi???
GRAZIE
Devo esportare i dati presenti in un database su di un file Excel.
Qualcuno puō aiutarmi???
GRAZIE
guarda queste classi http://jakarta.apache.org/poi/index.html io le ho usate e sono buone
le release stabili sono qui http://jakarta.apache.org/builds/jak...i/release/bin/
ma nei file zip che ho scaricato nn c'č nessuna classe
Ci sn solo risorse del tipo gif,xml,html,xls...
![]()
![]()
![]()
sono in un jar
ma il javadoc delle classi lo trovi anche nel sito di apache
puoi dirmi a grandi linee cosa e come devo usare le classi?
Grazie:master:
preso dai doc
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("new sheet");
// Create a row and put some cells in it. Rows are 0 based.
HSSFRow row = sheet.createRow((short)0);
// Create a cell and put a value in it.
HSSFCell cell = row.createCell((short)0);
cell.setCellValue(1);
// Or do it on one line.
row.createCell((short)1).setCellValue(1.2);
row.createCell((short)2).setCellValue("This is a string");
row.createCell((short)3).setCellValue(true);
// Write the output to a file
FileOutputStream fileOut = new FileOutputStream("workbook.xls");
wb.write(fileOut);
fileOut.close();
Va alla grande!
Scusa x il disturbo. 6 1 grande.
![]()
:adhone: :adhone: :adhone: :adhone: :adhone: