We have a presentation file with charts and the Excel data range that sources the chart is not a table. After we do some work with Aspose slides and save the presentation file, the final document ends up being corrupted.
It looks like Aspose.Slides library tries to convert the cell range (which is the data source for the chart) in the Excel worksheet into a table. The cell range that are the series name are formulas and this corrupts the embedded Excel file.
The net effect is that when we open the final Presentation document, the chart is rendered fine, however, we cannot edit the chart data anymore as the underlying Excel file is corrupt.
I am attaching two files:
1. original.pptx : before making any modifications with Aspose.Slides
2. aspose_output.pptx: after saving the file with Aspose.Slides. Edit data on the chart will not open excel. Also if you work your way through the DOM and get to the embedded excel file and try to open it, MS Excel will prompt to repair the file.
You can easily repro the issue by running the original.pptx through following code:
using (Aspose.Slides.Presentation p = new Aspose.Slides.Presentation(“original.pptx”))
{
p.Save(“output.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);
}
Any help is much appreciated!
Best!