Skip to content

Issue in writing image to xlsx file using XlsxReaderWriter #11

@developertechnostacks

Description

@developertechnostacks

@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.!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions