Hi,
I am formatting existing excel file in vb.net.
Looks like I cannot format individual row in the range.
Dim oSheet As Worksheet = oWB.Worksheets(0)
'Create range.
Dim oRange As Range
oSheet.Cells.CreateRange(0, 0, 5, 5)
oRange.Name = "DataRange"
'Declare a style object.
Dim oRangeStyle As Style
oRangeStyle = oWB.Styles(oWB.Styles.Add())
oRangeStyle.Font..Size = "12"
oRange.Style = oRangeStyle
After that, I want to change color just in first row of the range
Dim oColumnNameStyle As Style = oWB.Styles(oWB.Styles.Add())
oColumnNameStyle = oSheet.Cells.Rows(0).Style
oColumnNameStyle.Font.IsBold = True
oColumnNameStyle.Font.Color = Color.Blue
oSheet.Cells.Rows(intHeaderRow).Style = oColumnNameStyle
After I format one row in the range, whole range was formatted as first row.
In addition, I have a question:
I used to format excel files using Excel.Application object.
oXL = CType(CreateObject("Excel.Application"), Excel.Application)
oXL.Visible = True
After line oXL.Visible = True, excel file was visible and I could see what I do in every line of the code.
Is it available with Aspose.Cells
Please help.