Hi,
I want to add custom color to pallete and assign it to range object. Here is what i'm doing.
Workbook.ChangePalette(Color.FromArgb(102, 136, 164), 53);
//need to use color by index
CellsColor csc = ReportWorkbook.CreateCellsColor();
csc.ColorIndex = 53;
style.ForegroundColor = csc.Color;
style.Pattern = BackgroundType.Solid;
StyleFlag sfg = new StyleFlag();
sfg.All = true;
range.ApplyStyle(style, sfg);
When i assign color with index as 53, it still gives me diff color (RGB 255 102 0). Can you please advise what is wrong here?
Please note, i've req to assign by color by index, so i'm using CellsColor object here. Thanks
This message was posted using Aspose.Live 2 Forum