使用C#的Powerpoint 2007 [英] Powerpoint 2007 using C#

查看:83
本文介绍了使用C#的Powerpoint 2007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆