如何在C#中的用户指南表单中打开Pdf? [英] How Can I Open Pdf In User Guide Form In C# ?

查看:103
本文介绍了如何在C#中的用户指南表单中打开Pdf?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我正在处理我的项目,我添加了帮助标签,以帮助用户如何使用我的项目。我通过使用以下代码在路径中写了PDF文件中的所有指令,但PDF没有显示?有消息说:无法打开这个PDF ??为什么?



你可以帮我吗?

Hello every one.

i am working on my project , i added help tab to help the user how he can use my project. i wrote all instruction in PDF file in a path, by using following code , but the PDF is not showed ? there is a message says : can not open this PDF ?? why??

can you help me , please ?

private void button12_Click(object sender, EventArgs e)
        {
            string path = @"D:\PDF Pro.pdf";
            System.Diagnostics.Process.Start("Chrome.exe", path);
        }

推荐答案

文件无法打开可能有以下几种原因:



1.您的系统没有安装.pdf查看器(如Adobe的Acrobat Reader),并且您已禁用Chrome中的默认.pdf阅读器:[ ^ ]。



2. the文件名不正确。



3.特定的.pdf文件已被锁定,加密,或者您无权打开它。



有关在WinForms中显示.pdf的各种技术,请参阅:[ ^ ]。
There could be several reasons why the file will not open:

1. your system has no .pdf viewer installed (like Adobe's Acrobat Reader), and you have the default .pdf reader in Chrome disabled: [^].

2. the file name is incorrect.

3. the specific .pdf file is locked, encrypted, or you don't have permission necessary to open it.

For various techniques for displaying a .pdf in WinForms, see: [^].


这篇关于如何在C#中的用户指南表单中打开Pdf?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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