将Winform链接到Microsoft Power Point

编程入门 行业动态 更新时间:2024-10-26 22:22:21
本文介绍了将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

本文发布于:2023-10-30 08:10:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1542273.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:链接   Winform   Microsoft   Point   Power

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!