I try to set font color for part of string using
cell.Characters(0,7).Font.Color = Color.FromArgb(0, 153, 204);
but in sheet is color 0, 102, 204 it seem as bug.
when i set color using
Style style = cell.GetStyle();
style.Font.Color = Color.FromArgb(0, 153, 204);
in sheet is correctly 0,153,204
Thanks for your simple sample code and using Aspose.Cells.
Please download and use the latest version: Aspose.Cells for .NET 8.6.1, it works fine.
I have tested this issue with the following sample code and it showed the correct color in output excel file. I have attached the source excel file used in this code and output excel file generated by it for your reference.
Workbook workbook = new Workbook(“source.xlsx”);
Worksheet worksheet = workbook.Worksheets;
Cell cell = worksheet.Cells[“A1”];
cell.Characters(0, 7).Font.Color = Color.FromArgb(0, 153, 204);
thank for replay
this bug is only for SaveFormat.Excel97To2003