Aspose.Slides Package Getting Crashed while Reading the Cells Information

Hi Aspose Team,

I am using Aspose Slides for .NET version 22.11.0. I am trying to to get the chart data cells information which is present in one of our slide. It is throwing some exception.
OS Version on which Code executed: Windows 10 Enterprise 64-bit
.NET FrameworkVersion: 4.8
Please find attached PPT and error screenshot.

public void ReadChartData()
{
    try
    {
        string path = @"C:\Users\admin\\Report.pptx";
        byte[] byteFile = System.IO.File.ReadAllBytes(path);
        MemoryStream reportTemplateStream = new MemoryStream(byteFile);
        using (Presentation presentation = new Presentation(reportTemplateStream))
        {
            ISlide slide = presentation.Slides[0];
            IChart currentChart = slide.Shapes[0] as IChart;
            IChartData chartData = currentChart.ChartData;
            IChartDataWorkbook chartWorkbook = chartData.ChartDataWorkbook;
            //Above line throwing an exception
        }
    }
    catch (Exception ex) { }
}

Error.PNG (9.9 KB)
Report.zip (35.5 KB)

Note: Kindly change the path in sample code as per your need

@rkumarpa,
Thank you for contacting support.

Please share the following additional data and information:

  • the Report.pptx file (you can zip the file and then upload it here)
  • OS version on which the code was executed
  • .NET target platform in your app

Hi Team,

I have included all the required details in topic.
Please let me know if any more information is needed.
Thanks

@rkumarpa,
Thank you for the additional information. I’ve reproduced the problem with reading the chart data workbook and added a ticket with ID SLIDESNET-43640 to our issue-tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when a new release of Aspose.Slides with a fix is published.

The issues you found earlier (filed as SLIDESNET-43640) have been fixed in Aspose.Slides for .NET 24.1 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.