Visual Basic帮助文件 [英] Visual Basic Help File

查看:192
本文介绍了Visual Basic帮助文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何将帮助文件链接到Visual Basic(如PDF文件),并且当我单击按钮时,无论将软件带到哪里,即使我发布了该软件,也会打开PDF文件并将其安装在另一台计算机上.

I would like to know how to link a Help File into Visual Basic, like a PDF file, and when I click on a button the PDF file opens, no matter where I take this software to, even if I publish the software and install it on another computer.

谢谢

推荐答案

您可以在任何支持通过将文件名传递给Process.Start来读取PDF的计算机上打开PDF.直接或在StartInfo对象中的方法.这里有一个例子:
http://msdn.microsoft.com/en-AU/library/53ezey2s (v = vs.100).aspx
http://msdn.microsoft.com/zh-CN /library/0w4h05yb(v=vs.100).aspx

You can open a PDF on any computer that supports reading a PDF by passing the filename to the Process.Start method, either directly or in a StartInfo object.  There's an example here:
http://msdn.microsoft.com/en-AU/library/53ezey2s(v=vs.100).aspx
http://msdn.microsoft.com/en-AU/library/0w4h05yb(v=vs.100).aspx

通过传递文件名,您可以依靠操作系统来找到用于显示该文件的关联应用程序.如果您安装了应用程序的PC不支持显示PDF(这是不寻常的),则您需要嵌入一个 将PDF阅读器插入您的应用程序.大多数应用程序仅提供下载PDF阅读器的链接.

By passing the filename you are relying on the operating system to find the associated application for displaying that file. If the PC your application is installed on doesn't support displaying PDF (which would be unusual) then you would need to embed a PDF reader into your application.  Most applications just provide a link for downloading a PDF reader.

是否出于某些原因将您的帮助文件分发为PDF,而不是以应用程序直接理解的某种格式分发?

Is there some reason that your help file is being distributed as PDF rather than in some format that the application understands directly?


这篇关于Visual Basic帮助文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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