Help, I'm really out of my depth here (not unusual I hear you say :-). I
have just installed HTML Help in an application. I told it in the Project
Properties the path to the help file. I then type in a command line that
runs the help in the correct Context from a button on each form. It all
worked fine - HERE.
The problem is that when I sent it out to a site, the help file was not able
to be accessed because it was my path in the project properties, not
theirs - I didn't think of that! Not a real problem as I can ask for their
path and change each program to reflect that for an individual site (they
are running mdes, so I have to do it here).
It would be so much easier if I could somehow in code put the path in for
the help file maybe using a DLookup from a simple setup table.
This is the module code I have - from the people I purchased the Help
Authoring Program from.
'Command to pass HTMLHelp()
Public Const HH_DISPLAY_TOPIC = &H0 ' Display the help file.
Public Const HH_DISPLAY_TOC = &H1 ' Display the table of contents.
Public Const HH_DISPLAY_INDEX = &H2 ' Display the index.
Public Const HH_DISPLAY_SEARCH = &H3 ' Display full text search.
Public Const HH_HELP_CONTEXT = &HF ' Display mapped numeric value in
dwData.
Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _
(ByVal hwndCaller As Long, ByVal pszFile As String, _
ByVal uCommand As Long, ByVal dwData As Long) As Long
The code for running the help file for a context is
Call HtmlHelp(0, strHelpFile, HH_HELP_CONTEXT, iContextID)
strHelpFile is the name of the help file and iContextID is the actual ID of
the help you want.
The Help Authoring program, HelpScribbly by JGSoftware is really excellent
and easy to use, but I have emailed the writer and he knows nothing about
Access, so can't offer much assistance here.
Can anyone offer me any advice here, as I am unsure about how to deal with
the Project properties in code.
dixie 4 2433
Put the .chm file in the same folder as your mde and don't
specify a path to it, just name it in each form's property
sheet.
Glad you like HelpScribble, it's certainly worth the money..
:-))
Have a look at this link, I think I forgot it from those I
posted last time: http://www.mvps.org/htmlhelpcenter/h.../hhaccess.html
I try to use WinHelp where I can get away with it, shame
you've got to use HTMLHelp.
Must dash, pushed for time. Got to go to the Hospital then
the Vet's, or is it the Vet's then the Hospital... Hmm...
Could be in for a surprise if I don't get it right...
:-))
Good luck.
--
Nick Coe (UK)
AccHelp v1.01 Access Application Help File Builder http://www.alphacos.co.uk/
Download Free Demo Copy
----
"dixie" <di***@dogmail.com> wrote in message
news:41********@duster.adelaide.on.net... Help, I'm really out of my depth here (not unusual I hear you say :-). I have just installed HTML Help in an application. I told it in the Project Properties the path to the help file. I then type in a command line that runs the help in the correct Context from a button on each form. It all worked fine - HERE.
The problem is that when I sent it out to a site, the help file was not able to be accessed because it was my path in the project properties, not theirs - I didn't think of that! Not a real problem as I can ask for their path and change each program to reflect that for an individual site (they are running mdes, so I have to do it here).
It would be so much easier if I could somehow in code put the path in for the help file maybe using a DLookup from a simple setup table.
This is the module code I have - from the people I purchased the Help Authoring Program from.
'Command to pass HTMLHelp() Public Const HH_DISPLAY_TOPIC = &H0 ' Display the help file. Public Const HH_DISPLAY_TOC = &H1 ' Display the table of contents. Public Const HH_DISPLAY_INDEX = &H2 ' Display the index. Public Const HH_DISPLAY_SEARCH = &H3 ' Display full text search. Public Const HH_HELP_CONTEXT = &HF ' Display mapped numeric value in dwData.
Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _ (ByVal hwndCaller As Long, ByVal pszFile As String, _ ByVal uCommand As Long, ByVal dwData As Long) As Long
The code for running the help file for a context is Call HtmlHelp(0, strHelpFile, HH_HELP_CONTEXT, iContextID) strHelpFile is the name of the help file and iContextID is the actual ID of the help you want.
The Help Authoring program, HelpScribbly by JGSoftware is really excellent and easy to use, but I have emailed the writer and he knows nothing about Access, so can't offer much assistance here.
Can anyone offer me any advice here, as I am unsure about how to deal with the Project properties in code.
dixie
Now, whatever I do, the program (here, not on site)keeps looking for help at
my origingal path that I put in the project properties. It put the path
into the registry. I cannot therefore get rid of it out of my development
copy. Can anyone tell me how to remove the path from the registry? It is
in My
Computer\HKEY_CURRENT_USER\Software\Microsoft\Wind ows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\c hm.
There are then 5 REG_SZ entries, default, a, b, c and MRUList. a, b and c
have old paths I have set to the help file and the MRUList has the cba,
which I guess is just pointing to the fact I have recently used all 3 of
these entries. My question I guess, is how to safely remove these paths, so
I can do what Nick Coe is suggesting.
dixie
"Nick Coe (UK)" <cl*****************@MASPON.yahooDOTcom> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net... Put the .chm file in the same folder as your mde and don't specify a path to it, just name it in each form's property sheet.
Glad you like HelpScribble, it's certainly worth the money.. :-))
Have a look at this link, I think I forgot it from those I posted last time:
http://www.mvps.org/htmlhelpcenter/h.../hhaccess.html
I try to use WinHelp where I can get away with it, shame you've got to use HTMLHelp.
Must dash, pushed for time. Got to go to the Hospital then the Vet's, or is it the Vet's then the Hospital... Hmm... Could be in for a surprise if I don't get it right...
:-))
Good luck.
-- Nick Coe (UK) AccHelp v1.01 Access Application Help File Builder http://www.alphacos.co.uk/ Download Free Demo Copy ---- "dixie" <di***@dogmail.com> wrote in message news:41********@duster.adelaide.on.net... Help, I'm really out of my depth here (not unusual I hear you say :-). I have just installed HTML Help in an application. I told it in the Project Properties the path to the help file. I then type in a command line that runs the help in the correct Context from a button on each form. It all worked fine - HERE.
The problem is that when I sent it out to a site, the help file was not able to be accessed because it was my path in the project properties, not theirs - I didn't think of that! Not a real problem as I can ask for their path and change each program to reflect that for an individual site (they are running mdes, so I have to do it here).
It would be so much easier if I could somehow in code put the path in for the help file maybe using a DLookup from a simple setup table.
This is the module code I have - from the people I purchased the Help Authoring Program from.
'Command to pass HTMLHelp() Public Const HH_DISPLAY_TOPIC = &H0 ' Display the help file. Public Const HH_DISPLAY_TOC = &H1 ' Display the table of contents. Public Const HH_DISPLAY_INDEX = &H2 ' Display the index. Public Const HH_DISPLAY_SEARCH = &H3 ' Display full text search. Public Const HH_HELP_CONTEXT = &HF ' Display mapped numeric value in dwData.
Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _ (ByVal hwndCaller As Long, ByVal pszFile As String, _ ByVal uCommand As Long, ByVal dwData As Long) As Long
The code for running the help file for a context is Call HtmlHelp(0, strHelpFile, HH_HELP_CONTEXT, iContextID) strHelpFile is the name of the help file and iContextID is the actual ID of the help you want.
The Help Authoring program, HelpScribbly by JGSoftware is really excellent and easy to use, but I have emailed the writer and he knows nothing about Access, so can't offer much assistance here.
Can anyone offer me any advice here, as I am unsure about how to deal with the Project properties in code.
dixie
Nick, I have just managed to delete the registry entries that show the path
to the .chm file. I just held my breath and did it :-) I have taken the
path to the help file out of the application's project properties and in the
form property sheet, I have named the help file (with the .chm extension,
but no path). The help file is sitting in the same folder as the mde. I
get nothing when I click the help button on the form. I have even put the
helpcontextID in the forms property sheet. The code behind the button is:
Call HtmlHelp(0, "APP.chm", HH_HELP_CONTEXT, 1000)
Why can't I get this to work?
"Nick Coe (UK)" <cl*****************@MASPON.yahooDOTcom> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net... Put the .chm file in the same folder as your mde and don't specify a path to it, just name it in each form's property sheet.
Glad you like HelpScribble, it's certainly worth the money.. :-))
Have a look at this link, I think I forgot it from those I posted last time:
http://www.mvps.org/htmlhelpcenter/h.../hhaccess.html
I try to use WinHelp where I can get away with it, shame you've got to use HTMLHelp.
Must dash, pushed for time. Got to go to the Hospital then the Vet's, or is it the Vet's then the Hospital... Hmm... Could be in for a surprise if I don't get it right...
:-))
Good luck.
-- Nick Coe (UK) AccHelp v1.01 Access Application Help File Builder http://www.alphacos.co.uk/ Download Free Demo Copy ---- "dixie" <di***@dogmail.com> wrote in message news:41********@duster.adelaide.on.net... Help, I'm really out of my depth here (not unusual I hear you say :-). I have just installed HTML Help in an application. I told it in the Project Properties the path to the help file. I then type in a command line that runs the help in the correct Context from a button on each form. It all worked fine - HERE.
The problem is that when I sent it out to a site, the help file was not able to be accessed because it was my path in the project properties, not theirs - I didn't think of that! Not a real problem as I can ask for their path and change each program to reflect that for an individual site (they are running mdes, so I have to do it here).
It would be so much easier if I could somehow in code put the path in for the help file maybe using a DLookup from a simple setup table.
This is the module code I have - from the people I purchased the Help Authoring Program from.
'Command to pass HTMLHelp() Public Const HH_DISPLAY_TOPIC = &H0 ' Display the help file. Public Const HH_DISPLAY_TOC = &H1 ' Display the table of contents. Public Const HH_DISPLAY_INDEX = &H2 ' Display the index. Public Const HH_DISPLAY_SEARCH = &H3 ' Display full text search. Public Const HH_HELP_CONTEXT = &HF ' Display mapped numeric value in dwData.
Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _ (ByVal hwndCaller As Long, ByVal pszFile As String, _ ByVal uCommand As Long, ByVal dwData As Long) As Long
The code for running the help file for a context is Call HtmlHelp(0, strHelpFile, HH_HELP_CONTEXT, iContextID) strHelpFile is the name of the help file and iContextID is the actual ID of the help you want.
The Help Authoring program, HelpScribbly by JGSoftware is really excellent and easy to use, but I have emailed the writer and he knows nothing about Access, so can't offer much assistance here.
Can anyone offer me any advice here, as I am unsure about how to deal with the Project properties in code.
dixie
Right then dixie,
I've got a scratch app called db1 (of course) that I use for
reproducing prob's and questions. I've bunged your code
into it and created a button to call HTMLHelp, then I've
added a function to get the path to the application and pop
that into the help call. It works.
Here's the function to get the path. I put it in a module:-
Public Function GetAppPath() As String
' Get path to application
' Nick Coe www.alphacos.co.uk
' Based on something Doug Steele did and
' Dave Liske published www.mvps.org
Dim strFullPath As String, strAppPath As String
strFullPath = CurrentDb.Name
strAppPath = Left$(strFullPath, Len(strFullPath) _
- Len(Dir(strFullPath)))
' MsgBox "App path is " & strAppPath
GetAppPath = strAppPath
Exit Function
Then the cmd button code in the Form's class module was:
Private Sub cmdHTMLHelp_Click()
On Error GoTo Err_cmdHTMLHelp_Click
HtmlHelp 0, GetAppPath & "db1.chm", HH_HELP_CONTEXT,
1000
Exit_cmdHTMLHelp_Click:
Exit Sub
Err_cmdHTMLHelp_Click:
MsgBox Err.Description
Resume Exit_cmdHTMLHelp_Click
End Sub
It could be tidied up a bit, but it works.
Good luck.
--
Nick Coe (UK)
AccHelp v1.01 Access Application Help File Builder http://www.alphacos.co.uk/
Download Free Demo Copy
----
"dixie" <di***@dogmail.com> wrote in message
news:41********@duster.adelaide.on.net... Help, I'm really out of my depth here (not unusual I hear you say :-). I have just installed HTML Help in an application. I told it in the Project Properties the path to the help file. I then type in a command line that runs the help in the correct Context from a button on each form. It all worked fine - HERE.
The problem is that when I sent it out to a site, the help file was not able to be accessed because it was my path in the project properties, not theirs - I didn't think of that! Not a real problem as I can ask for their path and change each program to reflect that for an individual site (they are running mdes, so I have to do it here).
It would be so much easier if I could somehow in code put the path in for the help file maybe using a DLookup from a simple setup table.
This is the module code I have - from the people I purchased the Help Authoring Program from.
'Command to pass HTMLHelp() Public Const HH_DISPLAY_TOPIC = &H0 ' Display the help file. Public Const HH_DISPLAY_TOC = &H1 ' Display the table of contents. Public Const HH_DISPLAY_INDEX = &H2 ' Display the index. Public Const HH_DISPLAY_SEARCH = &H3 ' Display full text search. Public Const HH_HELP_CONTEXT = &HF ' Display mapped numeric value in dwData.
Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _ (ByVal hwndCaller As Long, ByVal pszFile As String, _ ByVal uCommand As Long, ByVal dwData As Long) As Long
The code for running the help file for a context is Call HtmlHelp(0, strHelpFile, HH_HELP_CONTEXT, iContextID) strHelpFile is the name of the help file and iContextID is the actual ID of the help you want.
The Help Authoring program, HelpScribbly by JGSoftware is really excellent and easy to use, but I have emailed the writer and he knows nothing about Access, so can't offer much assistance here.
Can anyone offer me any advice here, as I am unsure about how to deal with the Project properties in code.
dixie This discussion thread is closed Replies have been disabled for this discussion. Similar topics
7 posts
views
Thread by Sherry Littletree |
last post: by
|
reply
views
Thread by a |
last post: by
|
15 posts
views
Thread by Nathan |
last post: by
|
59 posts
views
Thread by Lennart Björk |
last post: by
|
3 posts
views
Thread by Chuck Renner |
last post: by
|
8 posts
views
Thread by rn5a |
last post: by
|
15 posts
views
Thread by lxyone |
last post: by
| |
42 posts
views
Thread by Santander |
last post: by
| | | | | | | | | | |