You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Gaurav Arora <ga...@tyroo.com> on 2008/11/03 14:09:49 UTC

Unable to create references to cells

Hi,

I'm trying to run some code which ran perfectly fine with version 3.0
final.

 

            HSSFWorkbook wb = new HSSFWorkbook();

            HSSFSheet sheet = wb.createSheet("sheet");

            sheet.createRow(0).createCell(0).setCellValue("abcd");

            HSSFName name = wb.createName();

            name.setNameName("HOLAHOLAHOLAH");

            name.setReference("sheet!A1");

            FileOutputStream fileOut = new FileOutputStream("t.xls");

            wb.write(fileOut);

            fileOut.close();

 

 

For whatever reason, the named reference is created in POI 3.1 but not
in POI 3.2. Did I miss a change in the changelog? And is the code not
backward compatible at all?

 

------------------

Regards,

Gaurav Arora