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

Free Support Forum - aspose.com

OLE links getting corrupt on saving presentation (C# .NET)

Opening and re-saving a .ppt file with Aspose.Slides corrupts OLE links.

Aspose.Slides versions: 18.12 and 19.9

My code:

private static void Main()
        var fullFilePath = Path.GetFullPath(TestFilePath + @"\" + TestFileName);
        using (var fileStream = new FileStream(fullFilePath, FileMode.OpenOrCreate))
            var presentation = new Presentation(fileStream);
            var sourceFormat = presentation.SourceFormat;
            presentation.Save(fullFilePath.Replace(@".ppt", @" (Result).ppt"), GetSaveFormat(sourceFormat));

    private static SaveFormat GetSaveFormat(SourceFormat sourceFormat)
        switch (sourceFormat)
            case SourceFormat.Ppt:
                return SaveFormat.Ppt;
                return SaveFormat.Pptx;

Attached is a small VS 2017 Solution that demonstrates this OLE-link corruption on an example .ppt file.

HERE: https://drive.google.com/open?id=1CwBvn-YoAsl-NiOgUbK3SynNBpfPeIMI

You will have to re-link the child file in the parent file before running the application and experiencing this bug.

After opening and re-saving a .ppt file with an OLE link, the OLE link is changed from:
X:\path to files\child file.xls!... to X:\path to files\parent file.ppt\child file.xls!...


I have worked with the sample file shared by you and have been able to observe the issue. An issue with ID SLIDESNET-41470 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

1 Like

Hello, @mudassir.fayyaz. Anything new on this PPT file harm bug?



I like to inform that this issue will be resolved in 19.11. We will share good news with you soon.

1 Like

That is great news, Adnan Ahmad.

Do you happen to have any idea whatsoever when Aspose.Slides 19.11 will likely be released? Any kind of estimation is better than no estimation, so I appreciate anything you can offer.

19.9 is the latest release, right?


I like to share that at present Aspose.Slides for .NET 19.10 is latest available release and 19.11 will be released by end of November 2019.

The issues you have found earlier (filed as SLIDESNET-41470) have been fixed in this update.