本文介绍了将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
发布评论