将图像插入 Excel - Java
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/681206/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Insert Image into Excel - Java
提问by Turismo
I am working on a java web application where i have to show an image on excel file. i used the java file iopo to write the image to the excel file.
我正在开发一个 Java Web 应用程序,我必须在其中显示 excel 文件上的图像。我使用java文件iopo将图像写入excel文件。
Issue is when the user mail this to client the image does not show up
问题是当用户将其邮寄给客户端时,图像不显示
Is there any way to embed the image into the excel file using java with/without using any external API.
有没有办法在不使用任何外部API的情况下使用java将图像嵌入到excel文件中。
回答by Turismo
You can use Apache POI: http://poi.apache.org
您可以使用 Apache POI:http: //poi.apache.org
See especially http://poi.apache.org/spreadsheet/quick-guide.html#Images
特别参见http://poi.apache.org/spreadsheet/quick-guide.html#Images

