Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Open the spreadsheet, get the first sheet, first worksheet, and first cell A1.
- // This is solely demo code to show basics; your actual code would do much more here.
- let spreadsheet: BRAOfficeDocumentPackage = BRAOfficeDocumentPackage.open(path)
- let sheet: BRASheet = spreadsheet.workbook.sheets[0] as! BRASheet
- let worksheet: BRAWorksheet = spreadsheet.workbook.worksheets[0] as! BRAWorksheet
- let cell: BRACell = worksheet.cell(forCellReference: "A1")
- // Print some info to show the code works.
- //print(worksheet.name) // print "Sheet1"
- print(cell.stringValue())
- let sheet: BRASheet = spreadsheet.workbook.sheets[0] as! BRASheet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement