Skip to content

Commit

Permalink
Merge pull request #53 from snehasf3509/master
Browse files Browse the repository at this point in the history
Sample to merge multiple presentations / specific slides to another presentation
  • Loading branch information
MohanaselvamJothi authored Apr 3, 2024
2 parents dd1588b + 42214a0 commit 6c32cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//Clone the slide of the source Presentation.
ISlide clonedSlide = sourcePresentation.Slides[i].Clone();
//Merge the cloned slide to the destination Presentation with paste option - Destination Theme.
destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation);
destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void MergeParticularSlides(int slideIndex, int count)
//Clone the slide of the source Presentation.
ISlide clonedSlide = sourcePresentation.Slides[i].Clone();
//Merge the cloned slide to the destination Presentation with paste option - Destination Theme.
destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation);
destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme);
}

//Save the PowerPoint presentation.
Expand Down

0 comments on commit 6c32cdf

Please sign in to comment.