Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing [color red]Colors via Formula from VB Possible?

Status
Not open for further replies.

rchandr3

Programmer
Jun 16, 2003
244
US
Hi all,

By using formulas, (font_color) we can set the field color on the Crystal Reports. Is there any way that these format fields formulae like font_color, object_visibility be passed from VB?

I am sure it would be helpful to lots of people if someone could share their insight.

Thanks a lot
 
I don't know of a way to do this solely within VB, but you can pass this as a parameter then set conditional formatting on text items.

It does mean that you would have to allow for every type of colour within yourconditional format formula.



Reebo
UK

"Before you judge a man, walk a mile in his shoes. After that, who cares? ...He's a mile away and you've got his shoes." - Billy Connolly
 
You can set virtually any color if you set three parameters, one each for red, green and blue and then set the font color (in x->2) to:

color({?red},{?blue},{?green})

Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top