Add OLE Objects

Introduction

OLE (Object Linking and Embedding) objects in PowerPoint provide the capability to insert and interact with objects from other applications directly into the presentation. These objects can be either embedded or linked to the original file. In PowerPoint, OLE objects may encompass graphics, tables, charts, video, audio, and various other types of data. This article shows how to insert OLE objects into a presentation slide using Aspose.Slides Cloud API.

Example 1: Embed a File with an Icon

The default storage contains the MyPresentation.pptx file. Add the MyWorkbook.xlsx file as an embedded object to the first presentation slide at position (20, 20), with a width of 70, and a height of 60. Use the MyExcelIcon.ico file for the object icon and set the icon title to My document.

cURL Solution

SDK Solutions

The result:

The OLE object

Example 2: Add a Linked File

The default storage contains the MyPresentation.pptx and “MyWorkbook.xlsx” files. Add the Excel file as a linked object to the first presentation slide at position (20, 20), with a width of 145, and a height of 44.

cURL Solution

SDK Solutions

The result:

The OLE object

SDKs

Check Available SDKs to learn how to add an SDK to your project.