Click here to Skip to main content
15,905,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How to display chm file in Wpf using Webbrowser Control.

Regards
Balamurugan
Posted

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,
 
Share this answer
 
Comments
Balamurugan1989 3-Oct-13 6:52am    
I have designed chm files using Html Helper and when i'm adding this application it was executing properly. For me the requirement is in wpf form chm files should view.
Prasad Khandekar 4-Oct-13 6:04am    
Yes, Html Helper is a help authoring tool. It will open up the html or CHM file. But you want it get opened in the Webbrowser embedded in your WPF application. Unfortunately it won't work. Webbrowser control does not understand chm file format.
a Phong 17-Nov-14 23:13pm    
This solution isn't correct, actually WebBrowser support CHM file.

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

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900