|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Compiled HTML helpfile does not work when application is installedMy 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 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.GetExecutingAssembly.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 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: Show quoteHide quote > 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.GetExecutingAssembly.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 Christie wrote / napísal(a):
> I have tried it with your code, but now I cannot get it to run, even I wrote the code from my memory. I forgot to get directory from > 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?? location. It should be: HelpProvider1.HelpNamespace =IO.Path.Combine(IO.Path.GetDirectoryName(System.Reflection.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 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: Show quoteHide quote > 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.Reflection.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 > One more question (a stupid one, I know) must I then have the .chm file You can place the CHM file anywhere you want. But you always need to set > in the same directory as the program, or within one of the subfolders?? 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
Help Clearing data in MaskEditBox Control
dumb question IIF referencing both conditional parts regardless of condition? Parsing XML Help with memory/resource use Immediate window Proper Way to add tbxXXX.Text to URL Adding parameters to stored procedures AxMSFlexGrid is ambiguous in the namespace AxMSFlexGridLib dbl.quotes in a text file data |
|||||||||||||||||||||||