使用WebBrowser控件如何在wpf中显示chm文件 [英] Using WebBrowser Control how to display chm files in wpf

查看:515
本文介绍了使用WebBrowser控件如何在wpf中显示chm文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何使用Webbrowser Control在Wpf中显示chm文件.

问候
Balamurugan

Hi,
How to display chm file in Wpf using Webbrowser Control.

Regards
Balamurugan

推荐答案

你好,

Microsoft编译的HTML帮助是Microsoft专有的联机帮助格式,包含HTML页面,索引和其他导航工具的集合.这些文件被压缩并以二进制格式(扩展名为.CHM)部署,用于已编译的HTML.这样的网络浏览器将无法直接打开并显示此文件的内容.但是,您可以尝试对其进行反编译,然后在Web浏览器中显示各个HTML页面.或者,您可以查看 [ ^ ] MSDN文档)以了解有关如何完成此操作.适用于Windows窗体,但应与WPF一起使用.

问候
Hello,

Microsoft Compiled HTML Help is a Microsoft proprietary online help format, consisting of a collection of HTML pages, an index and other navigation tools. The files are compressed and deployed in a binary format with the extension .CHM, for Compiled HTML. As such web browser won;t be able to directly open and show the contents of this file. However you can try decompiling it and then show the individual HTML pages in the web browser. Alternatively you can check this[^] MSDN documentation to know more about how to accomplish it. it''s for Windows Forms but should work with WPF.

Regards,


尝试一下,

Try it,

<webbrowser source="mk:@MSITStore:D:/sample.chm::/html/index.htm" />


这篇关于使用WebBrowser控件如何在wpf中显示chm文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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