You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/04/04 15:19:15 UTC
DO NOT REPLY [Bug 39392] Error in subsequent calls
HSSFDataFormat.getFormat()
https://issues.apache.org/bugzilla/show_bug.cgi?id=39392
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #4 from Yegor Kozlov <ye...@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