Ver Mensaje Individual
  #3  
Antiguo 03-04-2007
LucianoRey LucianoRey is offline
Miembro
 
Registrado: feb 2004
Posts: 73
Reputación: 21
LucianoRey Va por buen camino
Hola, no he usado jakarta poi, pero el ejemplo que trae para mezcla de celdas es esta:

Código:
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("new sheet");
    HSSFRow row = sheet.createRow((short) 1);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("This is a test of merging");
    sheet.addMergedRegion(new Region(1,(short)1,1,(short)2));
    // Write the output to a file
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
, espero te sirva, saludos.
Responder Con Cita