使用C#的Office Line WebBrowser [英] Office Line WebBrowser using C#
问题描述
我正在研究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屋!