Hi,
I am having problems modifiying the existing style. Vertical alignment and background color is not applyied on cell after modifying it. Only underline is applied. Please use my example below.
Regards
Ranko
Workbook wb = new Workbook();
wb.Worksheets.Clear();
Worksheet ws = wb.Worksheets.Add("Sheet");
Style s = wb.Styles[wb.Styles.Add()];
s.Name = "NewStyle";
s.Font.Underline = FontUnderlineType.Single;
s.BackgroundColor = Color.Blue;
s.VerticalAlignment = TextAlignmentType.Center;
Cells cells = ws.Cells;
Cell c = cells["F2"];
c.PutValue("Text");
c.SetStyle(s);
wb.Save(@"Result.xlsx", FileFormatType.Excel2007Xlsx);