views:

25

answers:

1

I'm making an application that converts our data structure to an excel file. We're currently using POI to do the conversion.

The problem is that the Cell only supports Strings, Numbers and formulas, and our data structure supports images. Is there a way to add images to cells?

+1  A: 

There is no images cells in Excel,you need to add the images to the worksheet.

HSSFWorkbook workbook;        
workbook.addPicture(pngData, HSSFWorkbook.PICTURE_TYPE_PNG);
liya