Solved

crystal report shading

Posted on 2008-10-21
6
419 Views
Last Modified: 2013-11-07
Does anyone know the syntex if i have an ID called Directs I want shading anything else no color.

example

if RecordNumber Mod 0 = 0 Then silver Else NoColor

Open in new window

0
Comment
Question by:sevensnake77
  • 4
  • 2
6 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 22767865
Try it this way

If {IDfield} = 'Directs' then
   crSilver
else
   crNoColor

mlmcc
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 22768255
getting error also when I input the syntex you provided I get the ID field highlighted and it says field not known.

Error in File  C:\WINDOWS\TEMP\temp_a1312633-eaf1-4fa9-a1e0-b62104b1863c.rpt: Error in formula  <Section_Back_Color>. 'If {ID} = 'Directs' then ' This field name is not  known.

If {ID} = 'Directs' then

   crSilver

else

   crNoColor

Open in new window

0
 
LVL 9

Author Comment

by:sevensnake77
ID: 22768267
never mind I know one sec
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 9

Author Comment

by:sevensnake77
ID: 22768290
Ok I got that part. But what if I want just the text highlighted not the background?

If {item.ID} = 'Directs' then

   crSilver

else

   crNoColor

Open in new window

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22770492
Use the FORMULA BUTTON on the FONT page and change the color

mlmcc
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 22770811
No I already got it, But thanks for the reply.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now