如何创建自定义ppt应用程序 [英] How do I create custom ppt application

查看:84
本文介绍了如何创建自定义ppt应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i想要创建windows(.exe)应用程序,通过PC中的任何ppt演示软件打开自定义预加载的ppt文件,如MS powerpoint.it还包括搜索选项和ppt必须是包含在软件本身,它被用作可用的应用程序,请分享您的意见



我尝试过:



i我正在使用Visual Studio 2012,C#语言,我不知道如何凝视


i want to create windows (.exe) application that opens the custom pre loaded ppt files via any ppt presentation software in pc like MS powerpoint.it also include search options and ppt must be included to the software itself ,it is used as protable application, please share your opinions

What I have tried:

i am using Visual studio 2012 ,C# language and i do not know how to get stared

推荐答案

我不知道你是什么意思是'包括搜索选项'..我提供的信息就是这个 - 我有一个构建自定义PDF的过程 - 它不能从Crystal等生成,自定义数据被盖章到PDF上



该程序需要提供预览生成报告功能 - 因此,它使用 AssocQueryString函数(Windows) [ ^ ]以确保有一个能够显示PDF的程序(在两台不同的机器上,一台使用Adobe Acrobat Reader和另一台机器完全不同)。



一旦我检查到有可用的查看器,在需要预览的位置,我会执行Shell Execute,文件名为磁盘上的PDF,并将操作设置为打开,然后在计算机上的相关查看器中弹出PDF。



所以,稍微翻一下你的问题,我会把powerpoint ppt和/或pptx作为资源包含在exe中,使用反射来查找这些资源并给出用户可以选择查看哪个,然后从exe中提取到磁盘并在文件上执行Shell Execute'open'..



那里在这里添加其他口哨和铃铛,比如等待/检测到视图过程已经完成并且干净地整理提取的文件



我的建议 - 开始简单



一个Winforms应用程序

a)在表格加载运行代码,检查是否有与.ppt或.pptx相关联的应用程序,如果不是

b)添加一个列表框和一个'查看按钮'

c)反映一个资源名称列表,并在用户拥有时显示在列表框中

d)选中一个列表框项并单击查看按钮,将该资源提取到磁盘,执行ShellExecute进程,等待它到f inish,整理文件
Im not sure what you mean about 'include search options' .. what I offer for info is this - I have a process that builds a custom PDF - it cant be generated from Crystal or the like, custom data is 'stamped' onto the PDF

The program needs to offer a 'preview generated report' function - so, it uses AssocQueryString function (Windows)[^] and such to make sure there's a program capable of displaying the PDF (and on two different machines, one's using Adobe Acrobat Reader and another something completely different).

Once I've checked that there is a viewer available, at the point where a 'Preview' is required, I do a 'Shell Execute' with the filename of the PDF on disk, and set the Operation to 'Open' which then pops up the PDF in the associated viewer on the machine.

So, flipping around your issue a little bit, I would include the powerpoint ppt and/or pptx as resources in the exe, use reflection to find these resources and give the user a choice on which one(s) to view, then extract from the exe to disk and do a Shell Execute 'open' on the file ..

There are other whistles and bells to add here, like waiting/detecting that the view process has finished and tidying up the extracted file cleanly

My suggestion - start simple

A Winforms app
a) On Form Load run code to check if there's an app associated with .ppt or .pptx and handle if not
b) add a listbox and a 'view button'
c) reflect for a list of resource names and display them in the listbox
d) when the user has a listbox item selected and click's the 'view' button, extract that resource to disk, perform the ShellExecute process, wait for it to finish, tidy up the file


这篇关于如何创建自定义ppt应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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