将Winform链接到Microsoft Power Point [英] Linking winform to microsoft power point

查看:90
本文介绍了将Winform链接到Microsoft Power Point的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过单击按钮或链接标签将c#winform链接到Microsoft Power Point文档.如果是,则需要有关如何执行此操作的帮助.预先tanx

Is it possibble to link a c# winform to a microsoft power point document, by the click of a button or a link label.if it is, need help on how to do it. tanx in advance

推荐答案

using PowerPoint = Microsoft.Office.Interop.PowerPoint;


PowerPoint.Application powerpnt;
PowerPoint.Presentations objpresentation;







string powerpointfilename;
powerpointfilename= @"mypowerpoint.ppt";
powerpnt= new PowerPoint.ApplicationClass();
// Show PowerPoint to the user.
powerpnt.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;

objpresentation= powerpnt.Presentations ;

//open the presentation
 objpresentation.Open ( powerpointfilename,MsoTriState.msoFalse ,
MsoTriState.msoTrue ,MsoTriState.msoTrue );




检查它是否有帮助




check if its helps


这篇关于将Winform链接到Microsoft Power Point的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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