https://issues.apache.org/bugzilla/show_bug.cgi?id=16936
--- Comment #6 from Rickard B <[EMAIL PROTECTED]> 2008-09-16 06:58:25 PST --- (In reply to comment #5) > Created an attachment (id=15095) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=15095) [details] > [PATCH] allows setting and retrieving style for entire row > > Doh! thanks for pointing that out! Now the rowStyle is initialized in the > constructor (a la HSSFCell :) Modified the test case to show that retrieving > works. I tried your patch and it successfully reads the data in. But when I write it back it doesn't get saved. If you use this: ExtendedFormatRecord xf = book.workbook.getExFormatAt(record.getXFIndex()); setRowStyle(new HSSFCellStyle(( short ) record.getXFIndex(), xf, book)); instead of + ExtendedFormatRecord xf = book.getExFormatAt(record.getXFIndex()); + setRowStyle(new HSSFCellStyle(( short ) 0xf, xf)) in the constructor for HSSFRow write back will also work. Thanks -- 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]
