1. import
2. import
3. import
4. import
5. import
6.
7. import
8.
9. import
10. import
11. import
12. import
13.
14.
15. public class
16. public static void
17. exportChartToExcel();
18. }
19.
20. private static void
21. "E://platoDemo.xls";
22. "E://platoDemo.jpg";
23.
24. new
25. HSSFSheet sheet = wb.createSheet();
26.
27. new
28. try
29. new
30.
31. "JPG", byteArrayOut);
32. new HSSFClientAnchor(0, 0, 0, 0,(short) 0, 0, (short) 10, 20);
33.
34. HSSFPatriarch patri = sheet.createDrawingPatriarch();
35. patri.createPicture(anchor, wb.addPicture(byteArrayOut
36. .toByteArray(), HSSFWorkbook.PICTURE_TYPE_PNG));
37. new
38. wb.write(outStream);
39. catch
40. // TODO Auto-generated catch block
41. e.printStackTrace();
42. }
43. }
44. }
45.
文字转化为图片格式 java java图片文字转换成excel
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
ubuntu加速android虚拟机
文章目录一、开发环境二、平台内容三、 VMware安装四、创建虚拟机五、安装镜像系统 所采用的平台为正点原子已经搭建好的,目的是快速体验嵌入式Liunx的开发,后面自己会一步一步地亲手把 Ubuntu 平台搭建完成。一、开发环境 软件: VMware Workstation 16 Pro 版本
ubuntu加速android虚拟机 ubuntu linux 运维 VMware