<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Highlighting Odd and Even Rows in JasperReports</title>
	<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/</link>
	<description>Brian Burridge shares his thoughts and opinions on Internet Software Architecture and Development, chronicles his current projects and areas of research, and give tips and tricks he discovers along the way.</description>
	<pubDate>Wed, 20 Aug 2008 23:39:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: WeAzLe</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-8837</link>
		<pubDate>Tue, 08 Jan 2008 15:51:24 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-8837</guid>
					<description>Hi Brian,

firstly, let me thank you for the hint on how to use a different color on odd and even rows! I tried your solution and it immediatly worked for me with exporting to PDF. I wanted to use the same thing in XLS but my rows did not get colored, so I was wondering if I might do something wrong like PROPERTY_WHITE_PAGE_BACKGROUND or something like that for Excel exporting. In the end I read the comment from Barry which finally helped me also getting the feature in XLS export while defining a new style with the condition expression

Boolean.valueOf( $V{PAGE_COUNT}.intValue() % 2 == 0 )

on it without using a rectangle and a print when expression on it!
Thanks again guys, this went immediatly into my own FAQ for designing JasperReports.

Bze,
WeAzLe</description>
		<content:encoded><![CDATA[<p>Hi Brian,</p>
<p>firstly, let me thank you for the hint on how to use a different color on odd and even rows! I tried your solution and it immediatly worked for me with exporting to PDF. I wanted to use the same thing in XLS but my rows did not get colored, so I was wondering if I might do something wrong like PROPERTY_WHITE_PAGE_BACKGROUND or something like that for Excel exporting. In the end I read the comment from Barry which finally helped me also getting the feature in XLS export while defining a new style with the condition expression</p>
<p>Boolean.valueOf( $V{PAGE_COUNT}.intValue() % 2 == 0 )</p>
<p>on it without using a rectangle and a print when expression on it!<br />
Thanks again guys, this went immediatly into my own FAQ for designing JasperReports.</p>
<p>Bze,<br />
WeAzLe
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Anu</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-6683</link>
		<pubDate>Mon, 20 Aug 2007 06:26:48 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-6683</guid>
					<description>good</description>
		<content:encoded><![CDATA[<p>good
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Steve</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-4435</link>
		<pubDate>Wed, 07 Mar 2007 03:45:24 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-4435</guid>
					<description>Nice solution.  Just thought I'd mention that you're needlessly creating a bunch of Boolean objects though.  You can do the following to avoid that:

Boolean.valueOf( $V{PAGE_COUNT}.intValue() % 2 == 0 )</description>
		<content:encoded><![CDATA[<p>Nice solution.  Just thought I&#8217;d mention that you&#8217;re needlessly creating a bunch of Boolean objects though.  You can do the following to avoid that:</p>
<p>Boolean.valueOf( $V{PAGE_COUNT}.intValue() % 2 == 0 )
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: nagasrikanth</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-4111</link>
		<pubDate>Mon, 19 Feb 2007 08:33:31 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-4111</guid>
					<description>Hi.,

It is good but ., plz insert the lines which shows the syntax i unable to get it.,

Thanks in Advance 
Srikanth</description>
		<content:encoded><![CDATA[<p>Hi.,</p>
<p>It is good but ., plz insert the lines which shows the syntax i unable to get it.,</p>
<p>Thanks in Advance<br />
Srikanth
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Richard</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-3646</link>
		<pubDate>Thu, 25 Jan 2007 09:13:50 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-3646</guid>
					<description>The style option is definately more elegant, worked fine for me, the only problem with it is that it only styles the cells, so unless you expand your cells in the band so there is no space between them, then the white of the band shows through in the gaps. I hate to say it but using the rectangles is easier for the overall end result. I wish you could just apply the style to the band.
~R</description>
		<content:encoded><![CDATA[<p>The style option is definately more elegant, worked fine for me, the only problem with it is that it only styles the cells, so unless you expand your cells in the band so there is no space between them, then the white of the band shows through in the gaps. I hate to say it but using the rectangles is easier for the overall end result. I wish you could just apply the style to the band.<br />
~R
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Omar Palomino Sandoval</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2734</link>
		<pubDate>Tue, 07 Nov 2006 16:24:05 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2734</guid>
					<description>Hi,
I think I've misunderstood something with the styles library's option. I had follow the steps to apply the conditional formatting but it didn't work. :s

ps. I'm using ireport 1.2.7.
pss. Everythin works fine with the rectangle option. :)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I think I&#8217;ve misunderstood something with the styles library&#8217;s option. I had follow the steps to apply the conditional formatting but it didn&#8217;t work. :s</p>
<p>ps. I&#8217;m using ireport 1.2.7.<br />
pss. Everythin works fine with the rectangle option. <img src='http://www.brianburridge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Thomas Schmidt</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2633</link>
		<pubDate>Tue, 31 Oct 2006 12:59:36 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2633</guid>
					<description>My solution:
I created a scriptlet that has a method that takes a color value and creates a small colored image and returns it. Embedded into an image tag, I get my small color boxes in front of each line.
-Thomas</description>
		<content:encoded><![CDATA[<p>My solution:<br />
I created a scriptlet that has a method that takes a color value and creates a small colored image and returns it. Embedded into an image tag, I get my small color boxes in front of each line.<br />
-Thomas
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Burridge</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2624</link>
		<pubDate>Mon, 30 Oct 2006 18:20:52 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2624</guid>
					<description>I didn't realize you needed different colors for each row. That is definitely a challenge. I can't think of a solution right now for that.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t realize you needed different colors for each row. That is definitely a challenge. I can&#8217;t think of a solution right now for that.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Thomas Schmidt</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2618</link>
		<pubDate>Mon, 30 Oct 2006 09:06:11 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2618</guid>
					<description>As the code fragment doesn't come, I uploaded it to our server: beta.lutumtappert.de/temp/code.png

The following image shows what I want to achieve:
beta.lutumtappert.de/temp/sample.gif
Thanks
-Thomas</description>
		<content:encoded><![CDATA[<p>As the code fragment doesn&#8217;t come, I uploaded it to our server: beta.lutumtappert.de/temp/code.png</p>
<p>The following image shows what I want to achieve:<br />
beta.lutumtappert.de/temp/sample.gif<br />
Thanks<br />
-Thomas
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Thomas Schmidt</title>
		<link>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2617</link>
		<pubDate>Mon, 30 Oct 2006 08:51:40 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/19/highlighting-odd-even-rows-jasperreports/#comment-2617</guid>
					<description>brian,

I just saw that my code sample was not visible. I try again with code tags:

&lt;code&gt;

   
   

&lt;/code&gt;

Do I understand you right that I have to include a rectangle for each possible color and then don't print those that don't match the current field value? That's not feasible with free color values coming from the DB. Can you please give a small code fragment with your expression.

I just want to create small colored squares in from of a line of text. If I don't find another way I have to create little images that I include via the image tag.

-Thomas</description>
		<content:encoded><![CDATA[<p>brian,</p>
<p>I just saw that my code sample was not visible. I try again with code tags:</p>
<p><code></p>
<p></code></p>
<p>Do I understand you right that I have to include a rectangle for each possible color and then don&#8217;t print those that don&#8217;t match the current field value? That&#8217;s not feasible with free color values coming from the DB. Can you please give a small code fragment with your expression.</p>
<p>I just want to create small colored squares in from of a line of text. If I don&#8217;t find another way I have to create little images that I include via the image tag.</p>
<p>-Thomas
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
