Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions File-Formats/Presentation/Working-with-Slide.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ IPresentation destinationPresentation = Presentation.Open(destinationPresentatio
//Clones the first slide of the source Presentation
ISlide clonedSlide = sourcePresentation.Slides[0].Clone();
//Merges 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 as stream
FileStream outputStream = new FileStream(OutputFileName, FileMode.Create);
destinationPresentation.Save(outputStream);
Expand All @@ -481,7 +481,7 @@ IPresentation destinationPresentation = Presentation.Open("DestinationPresentati
//Clones the first slide of the source Presentation
ISlide clonedSlide = sourcePresentation.Slides[0].Clone();
//Merges 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);
//Saves the destination Presentation
destinationPresentation.Save("Output.pptx");
//Closes the source presentation
Expand All @@ -498,7 +498,7 @@ Dim destinationPresentation_1 As IPresentation = Presentation.Open("DestinationP
'Clones the first slide of the source Presentation
Dim clonedSlide As ISlide = sourcePresentation_1.Slides(0).Clone()
'Merges the cloned slide to the destination Presentation with paste option - Destination Theme
destinationPresentation_1.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation_1)
destinationPresentation_1.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme)
'Saves the destination Presentation
destinationPresentation_1.Save("Output.pptx")
'Closes the source presentation
Expand Down