https://issues.apache.org/bugzilla/show_bug.cgi?id=46938
Maksym Symonov <maksym_symo...@epam.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #4 from Maksym Symonov <maksym_symo...@epam.com> 2009-03-31 00:23:43 PST --- Yegor, problem is in row: workbook.createCellStyle(); as you see created style isn't set to any of cells. Please, try commenting this line in example code and look into results generated. Both cells A1 on on both sheets should have light blue foreground as in existing.xls file which is some kind of template for generating new.xls. If this row is commented all works fine, style is fully copied to A1 on "test" sheet, if it is not both cells loose their color and it becomes white. After some more code exploring it was found that palette from original existing.xls file after it is loaded by POI is stored at HSSFWorkbook.workbook.records in a record of class UnknownRecord which has toString() interpretation [XFEXT] (0x87D) rawData=[7D, 08, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 3E, 00, 00, 00, 03, 00, 0D, 00, 14, 00, 03, 00, 00, 00, 01, 00, 00, 00, 04, 5F, 00, 2E, 00, 5F, 00, 2D, 0E, 00, 05, 00, 02, 04, 00, 14, 00, 02, 00, 00, 00, E7, EC, F4, FF, 23, 00, 30, 00, 2E, 00, 30, 00] [/XFEXT] needed light blue color is in this record in a rawdata field E7, EC, F4 -- 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-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org