c#中如何打开一个ppt文件

我想在一个C#窗体程序中打开一个PPT
2024-12-25 10:10:03
推荐回答(3个)
回答1:

Application ppa = new PowerPoint.ApplicationClass();

Presentation pre = ppa.Presentations.Open(
FileName,
MsoTriState.msoTrue,
MsoTriState.msoFalse,
MsoTriState.msoFalse);

回答2:

process p=new process();
p.startfile.name="....";
p.start();

回答3:

代码:
Application ppa = new PowerPoint.ApplicationClass();

Presentation pre = ppa.Presentations.Open(FileName, MsoTriState.msoTrue, MsoTriState.msoFalse, MsoTriState.msoFalse);