Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
How to Open PowerPoint 2007 file using c#.
I have already included PowerPoint Library in the project.

Thanks & Regards
Balkrishna Raut
Posted
Comments
Sirstee5S 22-Jan-17 4:45am    
You can also use the PowerPoint library for C#, it's an alternative approach which would be very useful in cases where you need to process presentation files but you do not have MS PowerPoint installed.

Have you tried the following (no need for any library)?

Process.Start(@"Test1.pps");
 
Share this answer
 
Comments
meBalkrishna 27-Nov-10 0:39am    
I know that but i want to open specific power point document and on that i am suppose to work. so library is needed to get access to that pptx document.
C#
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
using Graph = Microsoft.Office.Interop.Graph;
using Microsoft.Office.Core;





String sourcePPTPath= @"e:\test.pptx";
PowerPoint.Application pptApp = new PowerPoint.Application();
PowerPoint.Presentations pptDocSet = pptApp.Presentations;
PowerPoint._Presentation pptDoc = pptDocSet.Open(sourcePPTPath, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900