I am still getting this problem upon opening the document generated with my registered version of Aspose Cells version 5.2.0.3. When I use Microsoft Excel 2003 SP3 to open the generated A.xls file, I see the double borders on Sheet1 between rows 7 and 8 are missing. It only happens around cells with a formula.
There are similar problems with the Medium and Thick borders.
Dim xlaLIC As New Aspose.Cells.License : xlaLIC.SetLicense(New System.IO.StreamReader("C:\Testing\\Aspose.Cells.lic").BaseStream)
Dim BOOK As New Aspose.Cells.Workbook
Dim SHEET As Aspose.Cells.Worksheet = BOOK.Worksheets.Item(1 - 1)
SHEET.Cells(5 - 1, 1 - 1).PutValue("15.3", True)
SHEET.Cells(6 - 1, 1 - 1).PutValue("15.3", True)
SHEET.Cells(7 - 1, 1 - 1).Formula = "=SUM(A6:A6)"
SHEET.Cells(8 - 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(5 - 1, 1 - 1, 6, 3).ApplyStyle(STYLE, FLAG)
BOOK.Worksheets.ActiveSheetIndex = 0
BOOK.Save(
"C:\Testing\A.xls")