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

           Summary: User defined styles are not correctly applied to cells
           Product: POI
           Version: 3.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Define a user style in a new MSExcel xls file.
Open the file with POI and iterate through the existing styles, 0 to
workbook.getNumCellStyles(), using workbook.getCellStyleAt()
Look for the style with the same name that the one you defined,
cell.getUserStyleName().
Create a new cell in a sheet and apply it the style, cell.setCellStyle().
Write changes.
If we check the format properties of the new cell with POI we can tell that the
style was applied.
If we open the file with OpenOffice Calc we will see the style applied to the
cell.
If we open the file with MSExcell we won't see the style applied, we will see a
cell with a default style

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