https://issues.apache.org/bugzilla/show_bug.cgi?id=44680
Leroux <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | --- Comment #6 from Leroux <[EMAIL PROTECTED]> 2008-04-25 09:09:04 PST --- Hello, It's seems that this bug occurs when you put one cellStyle to two workbook Just consider the exemple above, the error should take place at line "cell.setCellStyle(cellStyle)" : // Create FileOutputStream os = new FileOutputStream("d:\\tst.xls"); HSSFWorkbook workbook = new HSSFWorkbook(); HSSFSheet sheet =workbook.createSheet("test"); HSSFCell cell = sheet.createRow(0).createCell((short)0); cell.setCellValue(new HSSFRichTextString("test")); HSSFCellStyle cellStyle = workbook.createCellStyle(); cellStyle.setFillForegroundColor(HSSFColor.GREY_25_PERCENT.index); cellStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND); cell.setCellStyle(cellStyle); sheet.autoSizeColumn((short)0); workbook.write(os); os.close(); // re create os = new FileOutputStream("d:\\tst2.xls"); workbook = new HSSFWorkbook(); sheet =workbook.createSheet("test"); cell = sheet.createRow(0).createCell((short)0); cell.setCellValue(new HSSFRichTextString("test")); cell.setCellStyle(cellStyle); sheet.autoSizeColumn((short)0); -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]