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

Free Support Forum - aspose.com

Add OLE Frame at the center of the slide

Hi,

I wanted to put the live excel chart at the center of the slide in a custom PPT template.

For some of the slides, it works perfectly fine but for some it is slightly skew and sometimes goes at the bottom of the slide or shifts on the right side gets skewed.

Can someone please let me know, how do we bring it at the center of the

oof = slide.getShapes().addOleObjectFrame(x,y,width,height.....)

I tried to get the slide size and adjust there, can someone help us?

-Thanks

Sagar Phanse

Dear Sagar,

This should work fine.

OleObject.X=(SlideSize.Width – OleObject.Width)/2;

OleObject.Y=(SlideSize.Height – OleObject.Height)/2;