Hi All,
I have an excel file containg chart.I am able to read the chart from excel file using POI XSSF.
But I am not able to save the XSSFChart as an image.I want the chart to be stored in my harddrive as an image(.jpg or .png).Please find my code fragment below.
FileInputStream file = new FileInputStream(new File("C:\\chart.xlsx"));
XSSFWorkbook workbook = new XSSFWorkbook (file);
XSSFSheet sheet = workbook.getSheetAt(0);
XSSFDrawing drawing = sheet.createDrawingPatriarch();
List<XSSFChart> listChart=drawing.getCharts();
System.out.println(listChart.size());
Please help.