let documentPath:String = Bundle.main.path(forResource: "demo1", ofType: "xlsx")!
let spreadsheet: BRAOfficeDocumentPackage = BRAOfficeDocumentPackage.open(documentPath)
let fooWorkSheet: BRAWorksheet = spreadsheet.workbook.worksheets[0] as! BRAWorksheet
It is working fine with below :
let title = NSMutableAttributedString(string: "title", attributes: [
.font: FONT_BOLD(30),
.foregroundColor: UIColor.red
])
fooWorkSheet.cell(forCellReference: "Title", shouldCreate: true)?.setAttributedStringValue(title)
But It is not working with below :
let title = NSMutableAttributedString(string: "title", attributes: [
.link: "http://www.google.com"
])
fooWorkSheet.cell(forCellReference: "Title", shouldCreate: true)?.setAttributedStringValue(title)
let documentPath:String = Bundle.main.path(forResource: "demo1", ofType: "xlsx")! let spreadsheet: BRAOfficeDocumentPackage = BRAOfficeDocumentPackage.open(documentPath) let fooWorkSheet: BRAWorksheet = spreadsheet.workbook.worksheets[0] as! BRAWorksheet
It is working fine with below : let title = NSMutableAttributedString(string: "title", attributes: [ .font: FONT_BOLD(30), .foregroundColor: UIColor.red ]) fooWorkSheet.cell(forCellReference: "Title", shouldCreate: true)?.setAttributedStringValue(title)
But It is not working with below : let title = NSMutableAttributedString(string: "title", attributes: [ .link: "http://www.google.com" ]) fooWorkSheet.cell(forCellReference: "Title", shouldCreate: true)?.setAttributedStringValue(title)
Can you please help me ?