Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

Crystal Reports Unusual Color Index Processing

$
0
0

I've discovered a very interesting behavior that happens when setting a formatting formula with colors. In this case the Background color, of a field When I specify the decimal value of a Hexadecimal color value, the wrong color is shown. I source this color value from a field in the database. What I discovered, is when I swap the Red, and Blue values of the RGB Color indexes, I get the exact correct colors Example; Hex color value #00ebff r=0, g=235, b=255 Decimal value for Crystal reports: 60415 Should be Cyan Crystal Reports shows Yellow When I change r=255, and b=0 (swapping them) Hex #ffeb00 Decimal: 16771840 Should be Yellow Crystal Reports shows Cyan I've attached a few screen shots for reference (couldn't include them all, but you get the idea) Has anyone else seen this behavior Thanks


Viewing all articles
Browse latest Browse all 3441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>