Hex Color code not support

Hi,

I am Tarun and using Aspose api for generate excel sheet. I am facing problem when we passing RGB(255,255,102) in Color class (new Color(255, 255, 102)). It is showing Black color. It is working fine for new Color(255, 255, 0). Help me. My email is taruns@contata.co.in

Hi,

Thanks for your inquiry.

Yes, it would work fine for the default colors like “new Color(255, 255, 0)” (that are present on the MS Excel 2003 standard color palette). But if you are using custom colors, you need to add them to the color palette first before using them. So, this is not the issue with Aspose.Cells for Java.

See the topic for your reference:
http://www.aspose.com/documentation/java-components/aspose.cells-for-java/colors-and-palette.html

Thank you.

Thanks, I’ll do the same as you suggest.