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

Issue in writing image to xlsx file using XlsxReaderWriter #11

Open
developertechnostacks opened this issue Sep 5, 2018 · 0 comments
Open

Comments

@developertechnostacks
Copy link

developertechnostacks commented Sep 5, 2018

@charlymr

I am trying to write image in xlsx file using this library, as per the document suggests method to write image in xlsx file i followed the same but was unable to succeed.

Below are the code snippet that i used to write images

First method

Worksheet.add(image, inCellReferenced: "A2", withOffset: CGPoint(x:15, y:10), size: (image?.size)! , preserveTransparency: true)

Second method

let drawing: BRAWorksheetDrawing = Worksheet.add(image, betweenCellsReferenced: "C2", and: "D2", with: UIEdgeInsets.zero, preserveTransparency: false)
drawing.insets = UIEdgeInsetsMake(0.0, 0.0, 0.5, 0.5)

Using this both methods i was unable to write the images to xlsx file, any help will be great.!

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

No branches or pull requests

2 participants