Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to show .CHM files in C#?

How to show .CHM files in C#?

Scheduled Pinned Locked Moved C#
helpcsharptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abhijeet Ballal
    wrote on last edited by
    #1

    Hi ALL, I'm using C# application which has compiled help file .chm. i want to display this when Help Button is clicked. It's working fine when I run the application, but once the project is deployed and Installed using installer it's unable to find the .chm file. It seems to be the path problem. Does anyone have any idea how to do this? Warm Regards Abhijeet Ballal

    T 1 Reply Last reply
    0
    • A Abhijeet Ballal

      Hi ALL, I'm using C# application which has compiled help file .chm. i want to display this when Help Button is clicked. It's working fine when I run the application, but once the project is deployed and Installed using installer it's unable to find the .chm file. It seems to be the path problem. Does anyone have any idea how to do this? Warm Regards Abhijeet Ballal

      T Offline
      T Offline
      Tehnoon
      wrote on last edited by
      #2

      Hello Abhijeet Your description of the problem is perhaps not complete. Are you devleoping a Web or a Windows Application, what method are you using to display and load the .chm file? Assuming that you are working on a Windows application and you are using the Helpprovider extender provider to load the display the .chm file, in the design mode, you have to specify then name of the chm file which you want to load when the user presses the F1 button in the 'HelpNamespce' property of the extender provider. There is a browse button against that property which allows you to specify the path of your chm file. If you use the browse button, it hard codes the physical file of the path in that property, so that when you run the application from the VS IDE, it works fine, but if you build and deploy the project, it would search for the chm file at the same physical path as that on your development machine, and hence doesnt find it. The Solution: In development environment/machine, remove the physical path of the chm file from the HelpNamespace property of the help provider and leave only the name of the file along with the .chm extension. Now copy the .chm file in the folder [ProjectName]\Bin\Debug (The same folder where the .exe file of your project is). Run and verify that the chm file is still being located. When deploying, make sure that the exe file of your project and the chm file are in the same folder. This should solve the problem.

      A 1 Reply Last reply
      0
      • T Tehnoon

        Hello Abhijeet Your description of the problem is perhaps not complete. Are you devleoping a Web or a Windows Application, what method are you using to display and load the .chm file? Assuming that you are working on a Windows application and you are using the Helpprovider extender provider to load the display the .chm file, in the design mode, you have to specify then name of the chm file which you want to load when the user presses the F1 button in the 'HelpNamespce' property of the extender provider. There is a browse button against that property which allows you to specify the path of your chm file. If you use the browse button, it hard codes the physical file of the path in that property, so that when you run the application from the VS IDE, it works fine, but if you build and deploy the project, it would search for the chm file at the same physical path as that on your development machine, and hence doesnt find it. The Solution: In development environment/machine, remove the physical path of the chm file from the HelpNamespace property of the help provider and leave only the name of the file along with the .chm extension. Now copy the .chm file in the folder [ProjectName]\Bin\Debug (The same folder where the .exe file of your project is). Run and verify that the chm file is still being located. When deploying, make sure that the exe file of your project and the chm file are in the same folder. This should solve the problem.

        A Offline
        A Offline
        Abhijeet Ballal
        wrote on last edited by
        #3

        Hi your correct I'm using Windows application. The Solution you've mentioned above works fine. Can .chm file be the part of Deployment project so that whenever i build and install it will be there? at present i'm not able to add .chm to deployment. I'm using System.Diagnostics.Process to display the Help. Thanks for ur quick reply.. Warm Regards Abhijeet Ballal

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups