When I open a document where I applied Double Borders to the top or bottom of a cell, only the top line of the double border shows initially. If I change the view in any way (page down and back, change tab then back), then the double border shows correctly. It is only on initial open that the problem shows. If I save the file from Excel and re-open it, then the border shows correctly.
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim BOOK As New Aspose.Cells.Workbook
Dim SHEET As Aspose.Cells.Worksheet = BOOK.Worksheets.Item(1 - 1)
SHEET.Cells(6 - 1, 1 - 1).PutValue("15.3", True)
SHEET.Cells(7 - 1, 1 - 1).Formula = "=SUM(A6:A6)"
Dim STYLE As Aspose.Cells.Style = BOOK.Styles.Item(BOOK.Styles.Add)
Dim FLAG As New Aspose.Cells.StyleFlag
FLAG.TopBorder = True
STYLE.Borders.Item(Aspose.Cells.BorderType.TopBorder).LineStyle = Aspose.Cells.CellBorderType.Double
SHEET.Cells.CreateRange(7 - 1, 1 - 1, 1, 1).ApplyStyle(STYLE, FLAG)
BOOK.Save("C:\Testing\A.xls")
End Sub 'Form1_Load