Linked Objects

Currently I am using Interop powerpoint for manipulating the presentations. I am evaluating Aspose.Slides for performance. Before that I am checking with my existing code so that I can map it to some function in aspose library.

For linked/embedded object in powerpoint, when we manually open this type of presentations, it pops up a dialog box for updating links.

In Interop, we have function of presentation class called UpdateLinks which we call in code will update the links so that popup won’t display. I want to know is there any such function in aspose?

Dear PSPL.

Aspose.Slides supports linking and embedding OLE objects. The class used for it is OleObjectFrame. You can add linked or embedded object using Shapes.AddOleObjectFrame method.

To change the link, OleObjectFrame has methods OleObjectFrame.AddLink() and OleObjectFrame.ClearLink.

Further, there is a Link class that is used to embed hyperlinks or links to slides in a TextFrame.

If you are new to Aspose.Slides, then please visit Programer’s Guide section on Aspose.Slides Wiki, it is very helpful and answer most of your questions.

Hi msfaiz,

Actually my question is after we have an OLE object (linked/embedded), how to update the links. To help you understand the issue, I will give an e.g.

e.g.
I have attached a PPT file which contains linked objects. Now when you open this PPT in windows explorer manually, it will popup a dialog box to update links present in the PPT.

The same thing causes problem when we open this PPT thru’ code of Interop powerpoint. So what we do now is, we call UpdateLinks function of Presentation Class of Interop powerpoint. This solves the issue for now.

Now, the thing which is worrying me is that I was not able to find such a function in aspose.slides. So will this cause problem when I open this PPT with aspose.slides?

PowerPoint Interop calls separate OLE server for each object and update it.
Aspose.Slides can’t do it because it doesn’t use OLE automation at all.

In the same time you shouldn’t have any problems if you try to open not updated
presentation with Aspose.Slides.