From f5f2f6cc7c262947525233067763cbd6075f2fdf Mon Sep 17 00:00:00 2001 From: "AzureAD\\VenkateshMurugananda" Date: Thu, 22 Feb 2024 17:11:58 +0530 Subject: [PATCH] ES-868571-Modify existing code slide.add API in presentation --- File-Formats/Presentation/Working-with-Slide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/File-Formats/Presentation/Working-with-Slide.md b/File-Formats/Presentation/Working-with-Slide.md index b3517ca3f..a1458c939 100644 --- a/File-Formats/Presentation/Working-with-Slide.md +++ b/File-Formats/Presentation/Working-with-Slide.md @@ -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); @@ -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 @@ -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