473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

HTML Help file

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
Nov 13 '05 #1
4 2588
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

Nov 13 '05 #2
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


Nov 13 '05 #3
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


Nov 13 '05 #4
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

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Sherry Littletree | last post by:
Hi All I am working on a site that has a large amount of common html on all its web pages. I am looking for a way to place this in a single file so, if changes are made, I can change this...
0
by: a | last post by:
Save text file as html kloepper 17:42 23 Jul '04 I'm using httpwebresponse and a StringBuilder to return a stream that originates as a file with the .txt suffix (My download code converts the html...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
59
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta...
3
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm...
8
by: rn5a | last post by:
I have a HTML page named Index.html which is divided into 3 frames. The URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP page. Now when I go to Windows Explorer, navigate to...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
42
by: Santander | last post by:
how to decode HTML pages encoded like this: http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm Is there script that will do this automatically and generate normal fully...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.