使用C#的Powerpoint 2007 [英] Powerpoint 2007 using C#
问题描述
如何使用c#打开PowerPoint 2007文件.
我已经在项目中包含了PowerPoint库.
谢谢与问候
Balkrishna Raut
Hi,
How to Open PowerPoint 2007 file using c#.
I have already included PowerPoint Library in the project.
Thanks & Regards
Balkrishna Raut
推荐答案
您是否尝试过以下操作(不需要任何库)?
Have you tried the following (no need for any library)?
Process.Start(@"Test1.pps");
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
using Graph = Microsoft.Office.Interop.Graph;
using Microsoft.Office.Core;
字符串sourcePPTPath = @"e:\ test.pptx";
PowerPoint.Application pptApp =新的PowerPoint.Application();
PowerPoint.Presentations pptDocSet = pptApp.Presentations;
PowerPoint._Presentation pptDoc = pptDocSet.Open(sourcePPTPath,MsoTriState.msoFalse,MsoTriState.msoFalse,MsoTriState.msoFalse);
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);
这篇关于使用C#的Powerpoint 2007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!