Hello,
I am using Aspose.Cells v17.5.6 to generate PNG of chart - “Chart 1” in the attached excel file. The PNG generated is of size 0 bytes.
Following code is used to generate the PNG:
Workbook workbook = new Workbook(“test.xlsx”);
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = “Sheet1”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart 1”);
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.setImageFormat(ImageFormat.getPng());
chart.toImage(“aspose response 17.5.6.png”, imgOptions);
Can you please look into this issue.
Thanks,
Neha