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

Free Support Forum - aspose.com

addOleObjectFrame throws NullPointerException

Hi,

OleObjectFrameEx oof = slide.getShapes().addOleObjectFrame(x, y, width, height, "Excel.Sheet.8", excelStream.toByteArray());

throws NullPointerException when the slide is SlideEx (pptx) object. The same worked for Slide (ppt)


Regards,

Hi
Leonid,


I have used the code snippet shared over here in documentation using Aspose.Slides for Java 2.8.0. I have been able to add Ole frame successfully.

Many Thanks,

Here, at

http://www.aspose.com/community/files/72/java-components/aspose.slides-for-java/category1372.aspx

I see the latest is 2.7.0

Hi Leonid,


The version that I have shared in the attachment is in fact the latest hotfix of Aspose.Slides for Java. I have used this version and it worked fine.

Many Thanks,