poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16936] [RFE] Setting background color for entire row
Date Tue, 16 Sep 2008 13:58:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=16936





--- Comment #6 from Rickard B <rickard.bottcher@gmail.com>  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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message