Thanks in advance for the help.
Hi Scott,
Thank you for sharing the sample code and template file.
I have tested the issue with the latest version of Aspose.Slides for .NET v14.7.0 and I am not able to reproduce any issue. I would suggest you to download and try the latest version and see if you still face the issue.
I am using the following code to test the issue with the latest version.
Presentation pres = new Presentation(“d:\data\Sample.pptx”);
IChart chart = null;
foreach (ISlide slide in pres.Slides)
{
foreach (IShape shape in slide.Shapes)
{
chart = shape as IChart;
if (chart != null)
{
//this Line is causing the corruption
foreach (ChartSeries series in chart.ChartData.Series)
{
//do absolutely nothing
}
}
}
}
pres.Save(“d:\data\sample2.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);
Thanks & Regards,