Skip to content Skip to sidebar Skip to footer

Embed Multiple Jpeg Images Into Excel Programmatically?

Dear Stackoverflowers, Outputting an Excel spreadsheet with images is a requirement of a project I'm doing. I've done a little research and found the following (perhaps incorrect)

Solution 1:

The Perl module Excel::Writer::XLSX can insert JPEG, PNG, and BMP images into a new Excel workbook.

I am currently porting it to a Python module called XlsxWriter and the inset_image() function is near the top of the TODO list.

Update: As of version 0.1.6 of XlsxWriter it is now possible to a add PNG/JPEG images. See the example in the documentation.

Solution 2:

As said in the comment above, Apache POI can solve your problem.

I did a little research and this example should be useful Apache POI Excel Insert an Image

Post a Comment for "Embed Multiple Jpeg Images Into Excel Programmatically?"