Corrupted document

Version: 14.9.0.


Starting a category name with a space followed by a digit results in a corrupted document. The following code will reproduce the problem in PowerPoint 2010. I have attached the document.

public static void main(String[] args) {
final Presentation pres = new Presentation();
final IChart c = pres.getSlides()
.get_Item(0)
.getShapes()
.addChart(
ChartType.Line,
0, 0, 500, 500);
final IChartData d = c.getChartData();
d.getCategories().clear();
d.getSeries().clear();
final IChartDataWorkbook wb = d.getChartDataWorkbook();
wb.clear(0);
d.getSeries().add(
wb.getCell(0, 0, 1, “Series 1”), c.getType());
d.getCategories().add(
wb.getCell(0, 1, 0, " 1"));
d.getSeries().get_Item(0).getDataPoints().addDataPointForLineSeries(
wb.getCell(0, 1, 1, 10));
pres.save(“D:/test.pptx”, SaveFormat.Pptx);
}

Hi Shaun,

Thank you for the sample code and generated file.

I checked your issue but the document generated at my end is opening with out any error in MS PowerPoint 2010. Can you please share the details of the error you are getting at your end. Also, please share the system environment with us i.e. OS, JDK version etc. to further check the issue.

Thanks & Regards,

The error is shown in the attached screenshot. Selecting repair does not work and the file is unrecoverable,


Windows 7 64-bit.

PowerPoint Version 14.0.7140.5002 (32-bit).

File was created with JDK 1.7.0_55.


Hi Shaun,


Thank you for the details.

I am checking your issue as per the details shared by you and will get back to you with results soon.

Thanks & Regards,