@@ -461,7 +461,7 @@ IPresentation destinationPresentation = Presentation.Open(destinationPresentatio
461461//Clones the first slide of the source Presentation
462462ISlide clonedSlide = sourcePresentation.Slides[ 0] .Clone();
463463//Merges the cloned slide to the destination Presentation with paste option - Destination Theme
464- destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation );
464+ destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme);
465465//Save the PowerPoint Presentation as stream
466466FileStream outputStream = new FileStream(OutputFileName, FileMode.Create);
467467destinationPresentation.Save(outputStream);
@@ -481,7 +481,7 @@ IPresentation destinationPresentation = Presentation.Open("DestinationPresentati
481481//Clones the first slide of the source Presentation
482482ISlide clonedSlide = sourcePresentation.Slides[ 0] .Clone();
483483//Merges the cloned slide to the destination Presentation with paste option - Destination Theme
484- destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation );
484+ destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme);
485485//Saves the destination Presentation
486486destinationPresentation.Save("Output.pptx");
487487//Closes the source presentation
@@ -498,7 +498,7 @@ Dim destinationPresentation_1 As IPresentation = Presentation.Open("DestinationP
498498'Clones the first slide of the source Presentation
499499Dim clonedSlide As ISlide = sourcePresentation_1.Slides(0).Clone()
500500'Merges the cloned slide to the destination Presentation with paste option - Destination Theme
501- destinationPresentation_1.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation_1 )
501+ destinationPresentation_1.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme)
502502'Saves the destination Presentation
503503destinationPresentation_1.Save("Output.pptx")
504504'Closes the source presentation
0 commit comments