Conversation
|
Really good concept and very necessary, but tried it with diferent images and their cell appears empty. Edit: Tried also like in example and nothing, newSheet.cell(CellIndex.indexByColumnRow(columnIndex: colIndex, rowIndex: rowIndex)).value.toString() looks like: [Image: jpg autox50] Really hoping a fix to this |
|
this feature works very well |
How did you manage to make it work? File gets bigger with the ImageCellValues but doesnt show any images even when editing the file |
I did not do anything special. I just followed the example codes. |
|
@falerr could you tell me which software you use for opening the excel file? I can see there are major discrepancies between Apple's Numbers and MS Excel from office 365 on Mac. Also, the solution proposed here is more of a proof-of-concept and is not suitable for HUGE number of images, as I didn't have time to introduce image reuse etc. I can post a more sophisticated approach I've built after testing it in my own app, probably as part of this PR |
I've been using Microsoft 365 on android and LibreOffice on PC, both of them didn't show the pictures. Also thanks for your help and work |
|
There is a very strange problem. If I add multiple pictures to the file, it probably adds the biggest picture (this is my guess) to all the cells I have added. For example, a small car picture must be added to the cells I marked here, but the following map image shrinks. |
|
Any news? Looking forward to them! |

This PR adds support for reading and writing images in Excel (.xlsx) files. The implementation:
Key Features:
Technical Implementation:
ImageCellValuefor representing images in cells_ImageCellParserfor reading images from Excel files_ImageCellCreatorfor writing images to Excel filesExample usage:
I've augmented
excel_example.dartandexcel_test.dartfiles with image support showcase/testing.