You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by hamtho <th...@project-team.de> on 2008/03/06 15:34:35 UTC

Alternating row-colors

Hi,

as I saw, this is an old topic
(http://mail-archives.apache.org/mod_mbox/poi-user/200405.mbox/%3C40A95E03.7000700@muibros.com%3E),
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: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


RE: Alternating row-colors

Posted by Nick Burch <ni...@torchbox.com>.
On Thu, 6 Mar 2008, Chaudhary, Harsh wrote:
> 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.

Patches are always gratefully accepted....

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


RE: Alternating row-colors

Posted by "Chaudhary, Harsh" <HC...@amfam.com>.
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:thamacher@project-team.de] 
Sent: Thursday, March 06, 2008 8:35 AM
To: user@poi.apache.org
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
03.7000700@muibros.com%3E),
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: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org