poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39392] Error in subsequent calls HSSFDataFormat.getFormat()
Date Sat, 04 Apr 2009 13:19:15 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=39392


Yegor Kozlov <yegor@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #4 from Yegor Kozlov <yegor@dinom.ru>  2009-04-04 06:19:13 PST ---
You are applying data format to the same cell style, that is why it affects all
the cells. To apply per-cell format you need to create a style for each cell:

        style = wb.createCellStyle();
        style.setDataFormat(iFormat);
        cell.setCellFormula("1/"+ String.valueOf(iFormat));
        cell.setCellStyle(style);

Yegor

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message