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

Free Support Forum - aspose.com

How to preserve substitute image when opening OLE object (C# .NET)

Hi,

We are using Aspose.Slides 18.9.0 for .NET. In some PPTX files that we generate, we have embedded Excel OLE objects and have set a substitute picture via the IOleObjectFrame. Currently, after a user accesses the embedded OLE excel object, the substitute picture is removed and the OLE object frame is resized and replaced with an Excel icon.

Instead of disappearing with an icon or the updated Excel chart, we would to keep the substitute image while still being able to link to embedded data. Is this possible? And if so, could you please explain how this might be achieved?

Thank you

@tkroger,

It is behavior of MS OLe engine that when you double click on OLE frame inside PowerPoint slide, the OLE get enabled and show the view portion of embedded excel as OLE image that is visible in excel sheet when viewing. In case of Excel Icon appearing, you need to make sure if the OLE frame is set as Icon. It is not an issue related to Aspose.Slides but implementation of OLE engine. The substituted image will always be replaced by OLE engine when it will be double clicked in PowerPoint.