使用C#的Office Line WebBrowser [英] Office Line WebBrowser using C#

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

问题描述

我正在研究windows application.在该应用程序中,我创建了一个Web Browser.我想在与offline browser相同的web browser上工作.我想在同一浏览器中打开已经保存的HTML文件.

例如:假设我有Rediff.com的HTML个文件,当我在address bar中输入文本时,它将自动移动到Web文件的物理路径.
即@"c:\ WebFiles \ Rediff \ Main.htm" ...

使用WebBrowser.Navigate(URL)它将连接到实时服务器.
如何将浏览器导航到Phyascial路径,即c:\?

有其他替代方法吗?

任何形式的链接,建议和特别的专家建议都将受到高度赞赏.

问候,
Balkrishna Raut

I am working on windows application. In that application i had created one Web Browser. I want to work on the same web browser where i want to make it as offline browser. I want to open already saved HTML files in the same browser.

For example: Suppose i have HTML files of Rediff.com and when i enter text into address bar it automatically move to physical path of web files.
i.e. @"c:\WebFiles\Rediff\Main.htm"...

Using WebBrowser.Navigate(URL) it will connect to live server.
How to navigate brouser to Phyascial path i.e c:\?

Is there any alternative way of doing it?

Any kind of link, suggestion and specially expert advice would be highly appreciated.

Regards,
Balkrishna Raut

推荐答案

使用file://代替url中的http://

问候
Espen Harlinn
use file:// instead of http:// in the url

Regards
Espen Harlinn


这篇关于使用C#的Office Line WebBrowser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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