Please look at my code and help me in which place I need to modify.
int colNo = 38;
Workbook workbook = new Workbook();
workbook.Open(@"D:\Color_Excel.xls");
Worksheet sheet = workbook.Worksheets[0];
sheet.Cells.SetRowHeight(0, 55);
sheet.Cells.SetColumnWidth(0, 50);
Aspose.Cells.Style rowStyle = workbook.Styles[workbook.Styles.Add()];
rowStyle.ForegroundColor = System.Drawing.Color.Navy;
rowStyle.Pattern = BackgroundType.Solid;
rowStyle.Font.Color = System.Drawing.Color.White;
StyleFlag rowStyleFlag = new StyleFlag();
rowStyleFlag.All = true;
Aspose.Cells.Row row = sheet.Cells.Rows[0];
row.ApplyStyle(rowStyle, rowStyleFlag);
string[] colorArr = new string[6] { "Gray", "Gray", "Gray", "Gray", "Gray", "Gray" };
for (int arrLength = 0; arrLength < colorArr.Length; arrLength++)
{
Aspose.Cells.Style style = workbook.Styles[workbook.Styles.Add()];
style.ForegroundColor = System.Drawing.Color.FromName(colorArr[arrLength]);
style.Pattern = BackgroundType.Solid;
style.Font.Color = System.Drawing.Color.White;
StyleFlag styleFlag = new StyleFlag();
styleFlag.All = true;
Column column = sheet.Cells.Columns[colNo];
column.ApplyStyle(style, styleFlag);
colNo++;
}
workbook.Save(@"D:\ColorAdd.xls");