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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort by font color? 1

Status
Not open for further replies.

brizaybrizoke

Technical User
Jul 21, 2011
25
US
Is it possible to sort data by it's font color in Crystal Reports 8.5?

For example, if group header font color is red then bring to top.

Thanks
 
I very much doubt it. You could do the reverse - create a field that is ordered as you wish, say 01 for red, 02 for black, 03 for blue. Use it to conditionally set the font colour, if that option exists in 8.5. Been years since I used it.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
One trick I used from 8.5 onwards was to put a prefix for group header names, to get them in the order I wanted. So if I wanted Oranges, Bananas, Apples in that order, they would be "a) Oranges" etc.

Does that help?

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
You must have used some formula to determine the font color, and it probably was based on ranges that the group summary fell into. If you insert a summary on a detail field at the group level, it activites the group sort feature (report->topN/group sort). Select the summary you want to sort by (that you used to create the font color), and I think you'll see the group values sorted by color.

-LB
 
Looks like I got it to work.

I entered a Nth Smallest summary into the Group Footer and then used the TopN/Sort Group Expert.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top