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 2017/02/10 00:41:25 UTC

[Bug 60571] Custom number formats with custom currency symbols not applied to cells

https://bz.apache.org/bugzilla/show_bug.cgi?id=60571

Jonny <jl...@us.ibm.com> changed:

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

--- Comment #11 from Jonny <jl...@us.ibm.com> ---
Hi All,

So this actually does work. The issue was that I was reusing CellStyles for
each currency field in the excel export. Thus, the last format would always
override the other ones. 

The solution was to use a hashmap, with the display mask as the key, to store
and retrieve all the CellStyles. And if it isn't in the hashmap, make a new
CellStyle.

Sorry for the confusion, and thank you all very much for your help!

-- 
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