We are using Aspose Cells 8.2.1
Hi Neeraj,
Thanks for your posting and using Aspose.Cells.
We were able to observe this issue after executing the following code using your source Excel file with the latest version: Aspose.Cells
for Java v8.2.1.4. It returns incorrect number of charts, it returns 2 whereas it should return 0 because there are not any charts inside the worksheet.
We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.
This issue has been logged as
- CELLSJAVA-41051 - Incorrect number of charts are returned.
I have also shown the console output of the following test code for a reference.
Java
String filePath = “F:\Shak-Data-RW\Downloads\Incorrect+Charts.xls”;
Workbook workbook = new Workbook(filePath);
for (int i = 0; i < workbook.getWorksheets().getCount(); i++)
{
Worksheet worksheet = workbook.getWorksheets().get(i);
System.out.println(worksheet.getCharts().getCount());
}
2
Hi,
Thanks for your assistance. I was able to find these charts.
Hi Neeraj,
Thanks for your posting and using Aspose.Cells.
Since it is not a bug of Aspose.Cells and charts do exist inside the worksheet but they are hidden, so we have closed this issue now. Let us know if you encounter any other issue, we will be glad to look into it and help you further.