Is there a way to add an image to a Cell using the POI Api?
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?
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);
精彩评论