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

Free Support Forum - aspose.com

How to embedded excel in ppt c#

I have a requirement to read embedded excel in slide and write some more information into the excel using c#. Can any one help me to sort this out?


I have observed your comments. Please visit this documentation link. This will help you to achieve your requirements. Please share feedback with us if there is still an issue.

1 Like

Thanks for the quick reply @Adnan.Ahmad

I’m using Aspose.Slides Version,in that facing issue while opening the embedded Excel.

The image has been replaced by the excel sheet content in a minimized form and the same has been attached foryour reference.

Capture.JPG (43.5 KB)
Please find the following code snippet

Aspose.Cells.Workbook workbookExcel = new Aspose.Cells.Workbook(excelFilePath);
MemoryStream ms = new MemoryStream();
workbookExcel.Save(ms, Aspose.Cells.SaveFormat.Xlsx);
ms.Seek(0, SeekOrigin.Begin);
byte[] buffer = new byte[(int)ms.Length];
buffer = ms.ToArray();
IOleObjectFrame oof = pres[p].Shapes.InsertOleObjectFrame(0, 595, 65, 120, 120, “Excel.Sheet.12”, buffer);
oof.UpdateAutomatic = false;
oof.SubstitutePictureFormat.Picture.Image = presentation_book.Images.AddImage((System.Drawing.Image)bitmap);


I have observed your comments. Can you please try to use Aspose.Slides latest version 19.1 on your end and if there is still an issue than please share source file along with sample code so that we may further investigate to help you out.

1 Like