简体   繁体   中英

Apache poi save chart as png

I am trying to extract chart as image from excel file using apache poi.

I got chart data from my workbook with code below

workbook.getSheetAt(0).createDrawingPatriarch().getCharts().get(0);

Somebody know how to save this chart as image?

经过一周的尝试,我发现有两种方法:1)使用Aspose库2)使用文件中的数据独立构建图表,并根据需要保存该图表。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM