Problem with cloning a slide

I am generating a ppt (slides)runtime.and i am adding some static slides from outside also by cloning.

total 5 static slides from outside i am cloning to my slides.

3 of the slides has been cloned success fully

but rest of the slides i am failed to clone.its showing following error..........

i debuggd and guess probably the reason is image.

all 5 slides has some images.

by cloning its not able to clone those images from the slides that it has been cloned (3 slides) it is randomly cloning some other images in place og the original images.

and for rest of the two slides it s not even cloned the slides.

images are in *.emf format .

i have changed some images to different format like *.png.,*.jpeg.

but problem is still there.

please help me out.

the code i am attaching herewith.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

graphFile = null;

try {

graphFile = new File(value + "d.ppt");

if (graphFile.exists()) {

try{

Presentation prestn=new Presentation(new FileInputStream(graphFile));

Slide currentPatientFlowSlide = prestn.getSlideByPosition(1);

profilePresentation.cloneSlide(currentPatientFlowSlide, 25);

}catch(Exception e){

e.printStackTrace();

}

} else {

currentPatientFlowSlide.getShapes().addRectangle(450, 1000, 4700, 2300);

}

} catch (PptEditException e) {

e.printStackTrace();

}

++slideNumber;

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

java.lang.InternalError: erroneous handlers
	at com.aspose.slides.aG.(Ljava/io/InputStream;I)V(SourceFile:???)
	at com.aspose.slides.dD.do(Lcom/aspose/slides/by;)V(SourceFile:229)
	at com.aspose.slides.aT.do(Lcom/aspose/slides/bf;Lcom/aspose/slides/by;)V(SourceFile:51)
	at com.aspose.slides.ah.do(Ljava/lang/Object;Lcom/aspose/slides/by;)Lcom/aspose/slides/aT;(SourceFile:23)
	at com.aspose.slides.Presentation.if(Lcom/aspose/slides/bb;)V(SourceFile:297)
	at com.aspose.slides.Presentation.(Ljava/io/InputStream;)V(SourceFile:555)
	

This message was posted using Page2Forum from Cloning a Slide - Aspose.Slides for .NET and Java

Dear chiranjibnandy,

If you have emf/wmf images, then you should add aspose.metafiles in your classpath and then try to see if error goes away.

not only in case of emf or wmf images i am getting this problem with every type of images like.....(.PNG,.JPEG ) and while cloning its cloning some other images instead of the original image.

please help me out.

Regards,

Chiranjib

not only in case of emf or wmf images i am getting this problem with every type of images like.....(.PNG,.JPEG ) and while cloning its cloning some other images instead of the original image.

please help me out.

Regards,

Chiranjib