I am trying to set background of cell to solid red. Leaving the foreground color as it is.
Below id my code. But in the output file i don’t see the color is changing
Workbook wb = new Workbook(@“C:\Test.xlsx”);
var style = wb.Worksheets[0].Cells[“A2”].GetStyle();
style.Pattern = BackgroundType.Solid;
style.BackgroundColor = System.Drawing.Color.Red;
wb.Worksheets[0].Cells[“A2”].SetStyle(style);
wb.Save(@“C:\Test2.xlsx”);