Dear All,
Evaluating Aspose Cells 8.0.2.0
I am trying to set BOLD and Top and Bottom Bordered to the Subtotal value using codes below but no luck :(,.. what I missed?
Style stotal = new Style();
stotal.Number = 4;
stotal.HorizontalAlignment = TextAlignmentType.Right;
stotal.Borders[BorderType.TopBorder].LineStyle = CellBorderType.Thick;
stotal.Borders[BorderType.BottomBorder].LineStyle = CellBorderType.Thick;
StyleFlag flag1;
flag1 = new StyleFlag();
flag1.NumberFormat = true;
cells.ApplyColumnStyle(2, stotal, flag1);
cells.ApplyColumnStyle(3, stotal, flag1);
cells.ApplyColumnStyle(4, stotal, flag1);
cells.ApplyColumnStyle(5, stotal, flag1);
cells.ApplyColumnStyle(6, stotal, flag1);
cells.ApplyColumnStyle(7, stotal, flag1);
cells.ApplyColumnStyle(8, stotal, flag1);
cells.ApplyColumnStyle(9, stotal, flag1);