forked from renebigot/XlsxReaderWriter
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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.!