469,584 Members | 2,385 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,584 developers. It's quick & easy.

Compiled HTML helpfile does not work when application is installed

My problem is that I am using a compiled HTML helpfile (.chm) for my
application help. I have copied the file to the bin directory and the
helpprovider component is pointing to the .chm file.

The code in the help button that displays the help is as follows:

Help.ShowHelp(Me,HelpProvider1.HelpNamespace)

It is working fine when I test the program, but once I publish it and
install it on another pc nothing happens when the help button is
clicked (not even an error message, nothing). This is very
frustrating.

Please point me in the right direction.

I am using Visual Studio 2005 (VB.Net).

Cheers

Sep 13 '06 #1
5 1810
It is very likely that CHM file on the target computer cannot be found.
Note that the system doesn't look in application's folder. Do you
specify the absolute full path to the CHM file? If not, do it on program
startup. Something like:

HelpProvider1.HelpNamespace =
IO.Path.Combine(System.Reflection.Assembly.GetExec utingAssembly.Location,
"myHelpFile.chm")
--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code
Sep 13 '06 #2
I have tried it with your code, but now I cannot get it to run, even
when I am debugging...I think my file is not located in the correct
area..
is the code that you gave my the only way to get the application path??
Peter Macej wrote:
It is very likely that CHM file on the target computer cannot be found.
Note that the system doesn't look in application's folder. Do you
specify the absolute full path to the CHM file? If not, do it on program
startup. Something like:

HelpProvider1.HelpNamespace =
IO.Path.Combine(System.Reflection.Assembly.GetExec utingAssembly.Location,
"myHelpFile.chm")
--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code
Sep 13 '06 #3
Christie wrote / napísal(a):
I have tried it with your code, but now I cannot get it to run, even
when I am debugging...I think my file is not located in the correct
area..
is the code that you gave my the only way to get the application path??
I wrote the code from my memory. I forgot to get directory from
location. It should be:

HelpProvider1.HelpNamespace
=IO.Path.Combine(IO.Path.GetDirectoryName(System.R eflection.Assembly.GetExecutingAssembly.Location),
"myHelpFile.chm")

This works for me.

--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code
Sep 13 '06 #4
OK..I will try this...

One more question (a stupid one, I know) must I then have the .chm file
in the same directory as the program, or within one of the subfolders??
Peter Macej wrote:
Christie wrote / napísal(a):
I have tried it with your code, but now I cannot get it to run, even
when I am debugging...I think my file is not located in the correct
area..
is the code that you gave my the only way to get the application path??

I wrote the code from my memory. I forgot to get directory from
location. It should be:

HelpProvider1.HelpNamespace
=IO.Path.Combine(IO.Path.GetDirectoryName(System.R eflection.Assembly.GetExecutingAssembly.Location),
"myHelpFile.chm")

This works for me.

--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code
Sep 13 '06 #5
One more question (a stupid one, I know) must I then have the .chm file
in the same directory as the program, or within one of the subfolders??
You can place the CHM file anywhere you want. But you always need to set
the full path so that your program can find it.

--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code
Sep 13 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

27 posts views Thread by Michael C | last post: by
5 posts views Thread by Brian Kitt | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.