在Winform中使用PowerPoint文档 [英] Using powerpoint document in winform

查看:71
本文介绍了在Winform中使用PowerPoint文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我最近发现了很多我认为不可能的东西.所以现在我想问这个问题.是否可以通过单击按钮将Winform中的文本(例如form1文本框)复制并标记到PowerPoint文档并进行打印?那就是我希望将Powerpoint文档像表单一样保存在我的应用程序中,以便我可以将其与我的应用程序一起部署.现在,当用户访问我的应用程序中的PowerPoint文档时,将使用Microsoft Powerpoint打开该文档,必须在用户计算机中安装Microsoft Powerpoint才能打开它,否则将显示一个消息框未安装ms office".现在,当打开文档时,应该将标签中的文本和文本框从fom1复制到powerpoint文档中的相应位置,以便用户可以打印或保存它,但是所做的更改不会影响我的应用程序中的powerpoint文档.
请在代码中提供名称空间和注释,以便更好地理解,如果您不理解该问题中的一部分,请让我进一步xplain.

Hi everyone
i have been discovering alot of things lately that i thought was impossible. So now i want to ask this question. Is it possible to copy text from a winform say form1 textbox and label by the click of a button to a powerpoint document and print it ?. That is i want to have the powerpoint document saved in my application just like a form so that i can deploy it with my application. Now when a user accesses the powerpoint document in my application, it is opened with microsoft powerpoint which must be installed in the user computer for it to open else a messagebox should be displayed "ms office not installed". Now when the document is opened the text from the label an textboxes should be copied from fom1 to repective position in the powerpoint document so user can print or save it, but the changes made cannot affect the powerpoint document which is in my application.
Please provide namespaces and comments in the code for better undastanding and if there is a part in the question you do not undastand please ask me to xplain more.

推荐答案



查看MSDN 文章 [ ^ ]有关将MS Power Point自动集成到.net应用程序中.因此,如文章所述,您可以添加幻灯片,图形,图像文本等.因此,您可以将文本框文本传递到幻灯片中,并向用户显示.

可能会满足您的所有要求.

也请参考这些链接.

http://support.microsoft.com/kb/303718 [ http://www.aspose.com/categories/.net -components/aspose.slides-for-.net/default.aspx [ http://msdn.microsoft.com/hi-in/magazine/cc163471(en -us).aspx [ ^ ]

希望对您有所帮助.


look into the MSDN article[^] about automating the MS power point into the .net application. So, as the article says, you can add slides, graphics, images texts etc. so, you can pass the textbox text into the slides and you can show to the user.

probably it will handle all your requirement.

refer these links also.

http://support.microsoft.com/kb/303718[^]
http://www.aspose.com/categories/.net-components/aspose.slides-for-.net/default.aspx[^]
http://msdn.microsoft.com/hi-in/magazine/cc163471(en-us).aspx[^]

hope it helps.


这篇关于在Winform中使用PowerPoint文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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