Inserting OLE Objects into the Worksheet

Possible Usage Scenarios

Aspose.Cells allows you to insert an OLE object into the worksheet. Please use the Worksheet.GetOleObjects().Add() method for this purpose. You will need an image byte array to be used as the picture representing the OLE object, and OLE object data bytes that contain the actual object to be inserted into the worksheet.

Inserting OLE Objects into the Worksheet

The following sample code creates the workbook object, inserts the OLE object into the first worksheet, and saves it as an output Excel file. Please see the Aspose Logo used as image bytes and the input Excel file used as OLE object data inside the code for reference.

Sample Code