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

Free Support Forum - aspose.com

Ppt to pptx for GetSlideByPosition and Clone

Hi,


int Position = 2;
_Present = _PptPresentation.Presentation as Aspose.Slides.Presentation;
Aspose.Slides.Slide templateSlide = _Present.GetSlideByPosition(Postion);
_Present.CloneSlide(templateSlide, _Present.Slides.LastSlidePosition + 1);

Above code snippet is part of .ppt file export. Now we need to export the same in to .pptx format.

Aspose.Slides.Pptx.PresentationEx class dont above methods :frowning: . Please help me in converting above code for pptx format.

Its really urgent.

Regards,
Amitha

Hi Amitha,

Thanks for your interest in Aspose.Slides.

Please use the following code snippet for PPTX files.

int Position = 1;
PresentationEx _Present = new PresentationEx(@“d:\pptx\welcome.pptx”);
SlideEx slide = _Present.Slides[Position];
_Present.Slides.InsertClone(_Present.Slides.Count, slide);
_Present.Save(@“d:\pptx\Out.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);