https://issues.apache.org/bugzilla/show_bug.cgi?id=47182

Yegor Kozlov <[email protected]> changed:

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

--- Comment #4 from Yegor Kozlov <[email protected]> 2011-06-25 13:07:01 UTC ---
In your case the user style is a parent of the cell style. The correct code to
check UserStyleName is below:

        HSSFCellStyle style = cell.getCellStyle();
        if(style.getParentStyle() != null){
            HSSFCellStyle  parentStyle = style.getParentStyle();
            String styleName = parentStyle.getUserStyleName();
        }

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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to