Hi Marc,
Thanks for your posting and using Aspose.Cells.
Please download and use the latest version: Aspose.Cells for .NET (Latest Version) it returns correct colors.
I have tested this issue with the following code and the returned colors are correct as you can see in the debug output.
Please see there is one hidden worksheet in your source file at 0 index, so make sure you are accessing the worksheet by name or with index 1. As you can see in my code, I am accessing the worksheet by name.
C#
string filePath = @“F:\Shak-Data-RW\Downloads\Test.xls”;
Workbook workbook =
new Workbook(filePath);
//Accessing worksheet by name
Worksheet worksheet = workbook.Worksheets[“Types tâche”];
Debug.WriteLine(worksheet.Cells[“C7”].GetStyle().ForegroundColor);
Debug.WriteLine(worksheet.Cells[“C8”].GetStyle().ForegroundColor);
Debug.WriteLine(worksheet.Cells[“C9”].GetStyle().ForegroundColor);
Debug.WriteLine(worksheet.Cells[“C10”].GetStyle().ForegroundColor);
Debug Output:Color [A=0, R=255, G=0, B=0]
Color [A=255, R=191, G=144, B=0]
Color [A=0, R=0, G=176, B=80]
Color [A=0, R=91, G=155, B=213]