Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setAttributedStringValue is not working with ".link" attribute #107

Open
vimal-bhadra opened this issue Feb 11, 2020 · 0 comments
Open

setAttributedStringValue is not working with ".link" attribute #107

vimal-bhadra opened this issue Feb 11, 2020 · 0 comments

Comments

@vimal-bhadra
Copy link

vimal-bhadra commented Feb 11, 2020

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant