cancel
Showing results for 
Search instead for 
Did you mean: 

Crstal Report alternate color Help?

Former Member
0 Kudos
105

Hello Friends,

I have a crystal report, Crystal Report contains a Table and I change the alternate color of the Rows using the following formula:

if RecordNumber mod 2 = 0 then crSilver else crNoColor

I want the alternate color to be within the Table, but the alternate color is applied outside the Table also. How to do it?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If I understand correctly, the entire background of the details section gets the colour, not just the area within the verticle lines. If so, then two possibilities, don't use verticle lines so that there is no border.

If this solution is not useful, then while I haven't tried this, you might be able to use an image, set up the size you need (assuming the details section does not extend vertically) and set the conditional suppression to suppress using a similar mod formula.

Hope this helps

rasinc

Edited by: rasinc on May 3, 2009 5:25 AM

ido_millet
Active Contributor
0 Kudos

Instead of using lines to depict the "table" border, use empty text boxes with a border.

Control their background color using an expression.

If you plan to export the report to HTML or to MS Word, there are other options as well.

Former Member
0 Kudos

Thanks rasinc and Ido_Millet,

Dear Ido_Millet,

How to control the background color of TextBoxes using an expression?

ido_millet
Active Contributor
0 Kudos

Right-click the text box,

Format Text menu option,

Border tab,

Background (enter expression)...

Former Member
0 Kudos

Thanks Ido Millet.

Answers (0)