I don't think this feature has been added yet. I was doing the same
thing myself a couple of days ago and yes, the code is not pretty at
all. Since we have to define styles for every possible type of
cell(string, decimal, comma formatted, percentage sign formatted etc.),
and then define the same styles for both odd and even numbered rows but
just with different foreground colors, it ends up being a lot of style
definitions.

And the code for applying these styles is equally ugly. This is such a
basic feature and it would be great if this was implemented.

HC.

-----Original Message-----
From: hamtho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2008 8:35 AM
To: [email protected]
Subject: Alternating row-colors



Hi,

as I saw, this is an old topic
(http://mail-archives.apache.org/mod_mbox/poi-user/200405.mbox/%3C40A95E
[EMAIL PROTECTED]),
but is there a practicable solution by now?

The problem is still the same:
I would like to add a alternating row color every second row, but as
there
might be some styles, that have been assigned to a cell already, I would
have to create a lot of cellstyles just for line alteration.
So what happened to this "row background color feature"? Or are there
any
other solutions to this problem?

Thomas
-- 
View this message in context:
http://www.nabble.com/Alternating-row-colors-tp15873155p15873155.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to