Inserting OLE Objects into the Worksheet

Possible Usage Scenarios

Aspose.Cells allows you to insert an OLE object inside the worksheet. Please use Worksheet->GetOleObjects()->Add() method for this purpose. You will need an image byte array that will be used to insert the OLE object inside the worksheet and Ole object data bytes that will be your actual object.to insert the Ole object inside the worksheet. 

Inserting OLE Objects into the Worksheet

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

Sample Code