Creating Excel Chart and Embedding it in Presentation as OLE Object

Required Steps

Following sequence of steps is required to create and embed an Excel Chart as an OLE Object in the PowerPoint Slide:

  1. Create an Excel Chart using Aspose.Cells for .NET.# Set the OLE size of the Excel Chart. using Aspose.Cells for .NET.# Get the image of the Excel Chart with Aspose.Cells for .NET.# Embed the Excel Chart as an OLE Object inside PPTX presentation using Aspose.Slides for .NET.# Replace the object changed image with the image obtained in step 3 to cater Object Changed Issue# Write the output presentation to disk in PPTX format

Implementation of the Required Steps

The implementation of the above steps in C# and Visual Basic is as under:

Conclusion

Working Solution for Chart ResizingObject Changed Issue