通过使用C#在Winform中单击按钮来打开Microsoft Powerpoint [英] Opening microsoft powerpoint by the click of a button in winform using c#

查看:118
本文介绍了通过使用C#在Winform中单击按钮来打开Microsoft Powerpoint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有一个Winform,我希望当用户单击按钮时,应该打开一个Powerpoint文档的新实例,以便用户可以使用该文档,即编辑该文档并打印该文档.但是,如果第二个用户访问该表单并单击按钮,则第一个用户所做的更改将不会出现.因此第二位用户也可以根据需要编辑文档并进行打印.

谢谢大家的提前帮助.

Helo everyone

i have a winform,and i want that when a user clicks on a button, a new instance of a powerpoint document should be opened,so that the user can work with the document, that is edit the document and print the document. But if a second user accesses the form and clicks on the button the changes made by the first user should not appear. so the second user can also edit the document as he pleases and also print.

Thanks everyone for your help in advance

推荐答案

您好,
请在按钮中尝试以下操作:
说"loc"是您的Power Point文件所在的物理位置:
Hi,
Please try the below in your button click:
say "loc" is the physical location where your power point file is present:
string loc = @"C:\MyPresentation.ppt";
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = "POWERPNT.exe";
psi.Arguments = loc;
Process.Start(psi);



如果您需要更多详细信息,请参考以下链接:
http://www.dotnetperls.com/process-start [



If you need more details on this, refer the below link:
http://www.dotnetperls.com/process-start[^]


这篇关于通过使用C#在Winform中单击按钮来打开Microsoft Powerpoint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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