Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# office interop copy slide to another pppt

using PPT = Microsoft.Office.Interop.PowerPoint;

public void Main()
{
    PPT.Application app = new PPT.Application();
    app.Visible = MsoTriState.msoCTrue;
    PPT.Presentation ppt1 = app.Presentations.Open(@"C:Presentation1.pptx");
    ppt1.Slides[1].Copy();

    PPT.Presentation ppt2 = app.Presentations.Open(@"C:Presentation2.pptx");
    ppt2.Windows[1].View.GotoSlide(1);

    app.CommandBars.ExecuteMso("PasteSourceFormatting");

}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# array accessor 
Csharp :: how to select multiple toggles at once in unity 
Csharp :: crystal reports convert decimal to integer in formula 
Csharp :: how to coppy a portion of an array in c# 
Csharp :: C# .net JwtSecurityTokenHandler jwttoken claims to object 
Csharp :: Difference between Math.Floor() and Math.Truncate() 
Csharp :: commandline to open outlook minimized 
Csharp :: c# functions 
Csharp :: extension method c# 
Csharp :: unity remove component 
Csharp :: c# online code editor 
Csharp :: c# convert string to datetime 
Csharp :: var c# 
Csharp :: copy file 
Csharp :: timespan format string c# 
Csharp :: c# for loop last iteration 
Csharp :: web scraping dynamic content c# 
Csharp :: ik not working unity 
Csharp :: how crate cron netapp 
Csharp :: Dominosteine c# 
Html :: turn off autocomplete input html 
Html :: html mailto 
Html :: fa link 
Html :: registered symbol html 
Html :: lorum picsum 
Html :: html5 embed pdf base64 
Html :: input type="file" and display image 
Html :: horizontal line html react 
Html :: how to change font size in html 
Html :: a href type submit 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =