We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

DataLabels.setPosition error

Workbook wb = new Workbook("C:/ABC.xlsx");
SeriesCollection nSeries = wb.getWorksheets().get(0).getCharts().get(0).getNSeries();
DataLabels dataLabels = nSeries.get(0).getDataLabels();
dataLabels.setPosition(dataLabels.getPosition());
wb.save("C:/ABC2.xlsx");



I use 8.7.2.2 , and ABC2.xlsx open will occur an error.

Hi Xiong,


Thank you for contacting Aspose support.

We have evaluated the presented scenario while using the latest revision of Aspose.Cells for Java 8.8.0.2 (attached), and we are not able to observe any problem with the resultant spreadsheet (attached). Please give this scenario another try against the latest version and let us know your feedback. In case you still face any difficulty, please share screenshots, highlighting the problem for further investigation.