Print Page | Close Window

Add Color inside a variable

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=19411
Printed Date: 19 May 2024 at 3:05am


Topic: Add Color inside a variable
Posted By: EddiRae
Subject: Add Color inside a variable
Date Posted: 15 Apr 2013 at 4:58pm
Hello,
I have a variable that has the chr(13) embedded in it.  This variable is placed on the report footer and reflects some totals for all of the lines on the report.

What I want to do is be able to highlight a specific row in this variable.  Is this possible?

Here is my code.  So let's say if I get to row 5, i want the background to be yellow.  How could you do that?

WhilePrintingRecords;
numbervar array aTrial;
numbervar array aFVC;
numbervar array aFEV1;
numbervar array aPEF;
numbervar position;
stringvar Result := "";


for position := 1 to 20 do
(
    if aTrial[position] > 0 then
    (
        Result := Result & chr(13) & totext(aTrial[position],0);
    )
);

Result;

Thanks for the help
Eddi Rae



Replies:
Posted By: kevlray
Date Posted: 16 Apr 2013 at 5:56am
if you are saying that within the formula editor you want to highlight a row of the code, that is not possible.  But in the report you want to highlight every fifth row, that might be possible.



Print Page | Close Window