CloneSlide not coming while trying to Merge two presentations

Hi,

I was trying to merge two presentation files to create a new one but CloneSlide() is not coming for presentation object.
Could you please help me in this regard. I am using Aspose.Slides version 17.5.0.0

here is the code.

Presentation pres1 = new Presentation(@“C:\1.pptx”);
Presentation pres2 = new Presentation(@“C:\2.pptx”);
Presentation targetpres = new Presentation();

SortedList sList = new SortedList();

        foreach (Slide slide in pres1.Slides)
        {         
        targetpres.CloneSlide
        }

@sayakg,

I have observed your comments. Can you please share source presentations, environment details with us so that we may further investigate to help you out.

Best Regards,

Adnan Ahmad

@sayakg,

I suggest you to please try using Aspose.Slides for .NET 17.5 on your end with sample code shared over this documentation link to serve the purpose. It seems you are using old API version and sample code which is no longer supported.

Many Thanks,

Mudassir Fayyaz