开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜