I am trying to embed excel spreadsheet in ppt using aspose.slides version 8.0. but not able to achieve the desired output. after generating ppt from aspose i get an image with text “Embeded ole Object” and when i double click that object. all the formatting of slide get disturbed.
Hi Prashant,
Thanks for inquiring Aspose.Slides.
I have observed the requirements shared by you. First of all, I suggest you to please try using Aspose.Slides for .NET 17.3, which is latest available version to date. The version that you are using on your end belong to Old Aspose.Slides API, that is no longer supported.
As far as your question related to embedding Excel Ole object is concerned, I like to share that the red, “Excel Ole Object” is set by Ole engine it self in PowerPoint presentation to show that there is an OLE object in slide that is disabled. When you double click the OLE object, it gets enabled and show the actual image of OLE data. There are two solutions for this. First is to use any third party VB scripts that you may add in your presentation to enable the OLE frames automatically when its opened. The other option is to get the image of Excel file and set that as image of OLE frame inside presentation.
- Working with OLE frames
- Adding Picture for OLE frame . Please refer to AddExcelChartInPresentation method in example.
For your issues concerning to format getting disturbed, I suggest you to please try using our latest Aspose.Slides for .NET 17.3 API that address these issues.
Many Thanks,