Hi,
I have problem to set background color in first row of excel file. The code what is not working is below:
Dim newStyle As Aspose.Cells.Style = cells.Rows(0).Style
newStyle.Font.IsBold = True
newStyle.BackgroundColor = Color.Red
Dim styleFlag As StyleFlag = New StyleFlag()
styleFlag.All = True
cells.Rows(0).ApplyStyle(newStyle, styleFlag)Dim newStyle As Aspose.Cells.Style = cells.Rows(0).Style
newStyle.Font.IsBold = True
newStyle.BackgroundColor = Color.Red
Dim styleFlag As StyleFlag = New StyleFlag()
styleFlag.All = True
cells.Rows(0).ApplyStyle(newStyle, styleFlag)
In this case only 'IsBold' properties is working. Can anybody help what I'm doing wrong?