WebBrowser pdf视图未在客户端计算机中运行 [英] WebBrowser pdf view Not Running in Client Machine

查看:59
本文介绍了WebBrowser pdf视图未在客户端计算机中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,

我是Dotnet Learner,我试图在vb.net windows应用程序中使用webbrowser打开pdf文件,如WebBrowser1.Navigate(D:\A.pdf)。它工作正常。但问题是,

当我创建EXE并在客户端机器上安装webbrowser页面显示错误。

请指导我。

Dear Sir,
I am Dotnet Learner, I have Tried to open pdf file using webbrowser in vb.net windows application as WebBrowser1.Navigate("D:\A.pdf"). Its working fine.But problem is,
When i create EXE and install in client machine webbrowser page shows error.
Pls guide me.

推荐答案

您将硬编码路径放入代码中。一个,这很糟糕。



客户机是否有D:驱动器?您尝试在该路径上打开的文档是?客户端计算机是否安装了某种PDF阅读器,例如Acrobat Reader? WebBrowser控件不知道如何呈现PDF,因此需要一些帮助来完成它,比如Acrobat Reader。
You put a hard-coded path into code. For one, that's bad.

Does the client machine have a D: drive? Is the document you're trying to open at that path? Does the client machine have some kind of PDF reader installed, like Acrobat Reader? The WebBrowser control has no idea how to render a PDF, so it's going to need some help to do it, like Acrobat Reader.


感谢您的重播,

i给了这个WebBrowser1.Navigate(D:\A.pdf)作为示例,实际上我从Access DB显示它,所以路径和文件以及Acrobat reader,一切都好。

后来我发现客户端机器可能存在问题,所以我通知他们检查另一台机器,并等待他们的结果。

但我需要找到为什么它不在那台机器上工作?
Thank You for your replay,
i gave this WebBrowser1.Navigate("D:\A.pdf") as example, Actually i show it from Access DB, so path and file and Acrobat reader, everything ok.
Later i found there may be issue in client machine, so i inform them to check someother machine, and waiting for their result.
But i need to find why it not working in that machine?


感谢您的重播,

i将此WebBrowser1.Navigate(D:\A.pdf)作为示例,实际上我是从Access DB中显示的,所以路径和文件和Acrobat阅读器,一切都好。

后来我发现客户端机器可能有问题,所以我通知他们检查另一台机器,并等待他们的结果。

但我需要找到为什么它不能在那台机器上工作?
Thank You for your replay,
i gave this WebBrowser1.Navigate("D:\A.pdf") as example, Actually i show it from Access DB, so path and file and Acrobat reader, everything ok.
Later i found there may be issue in client machine, so i inform them to check someother machine, and waiting for their result.
But i need to find why it not working in that machine?


这篇关于WebBrowser pdf视图未在客户端计算机中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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