Hi,
I have tried to run example situated here:
But I have got an error. See stack trace below.
Also I have tried to dowload full example from description, but also got an error:
You can find wrong link “here”:
In the example given below, a Microsoft Excel Chart object in an Excel file is added to a slide as an OLE Object Frame using Aspose.Slides for Java. The Excel file that was used in this example can be downloaded from here.
Full StackTrace:
Exception in thread “main” java.lang.NullPointerException
at com.aspose.slides.pptx.OleObjectFrameEx.(SourceFile:117)
at com.aspose.slides.pptx.ShapesEx$3$3.do(SourceFile:135)
at com.aspose.slides.obfuscated.as.if(SourceFile:36)
at com.aspose.slides.obfuscated.as.(SourceFile:20)
at com.aspose.slides.pptx.ShapesEx$3.do(SourceFile:123)
at com.aspose.slides.obfuscated.as.if(SourceFile:36)
at com.aspose.slides.obfuscated.as.(SourceFile:20)
at com.aspose.slides.pptx.ShapesEx.if(SourceFile:110)
at com.aspose.slides.pptx.ShapesEx.do(SourceFile:241)
at com.aspose.slides.pptx.ShapesEx.addOleObjectFrame(SourceFile:273)
at TestAsposePowerPoint2007.addPictureOle(TestAsposePowerPoint2007.java:83)
Line 83: OleObjectFrameEx oof = sld.getShapes().addOleObjectFrame( 0, 0, pres.getSlideSize().getSize().width,
pres.getSlideSize().getSize().height,
“Excel.Sheet.8”, buf )
Please give me working example.
Actulay I need generate chart in excel 2007 from scratch, and insert into PowerPoint 2007 as Ole object.
Thank you.