473,883 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_TOPI C = &H0 ' Display the help file.
Public Const HH_DISPLAY_TOC = &H1 ' Display the table of contents.
Public Const HH_DISPLAY_INDE X = &H2 ' Display the index.
Public Const HH_DISPLAY_SEAR CH = &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 2645
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.adelaid e.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_TOPI C = &H0 ' Display the help
file.
Public Const HH_DISPLAY_TOC = &H1 ' Display the
table of contents.
Public Const HH_DISPLAY_INDE X = &H2 ' Display the
index.
Public Const HH_DISPLAY_SEAR CH = &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_C URRENT_USER\Sof tware\Microsoft \Windows\Curren tVersion\Explor er\ComDlg32\Ope nSaveMRU\chm.
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.ya hooDOTcom> wrote in message
news:41******** *************** @ptn-nntp-reader02.plus.n et...
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.adelaid e.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_TOPI C = &H0 ' Display the help file.
Public Const HH_DISPLAY_TOC = &H1 ' Display the table of contents.
Public Const HH_DISPLAY_INDE X = &H2 ' Display the index.
Public Const HH_DISPLAY_SEAR CH = &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.ya hooDOTcom> wrote in message
news:41******** *************** @ptn-nntp-reader02.plus.n et...
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.adelaid e.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_TOPI C = &H0 ' Display the help file.
Public Const HH_DISPLAY_TOC = &H1 ' Display the table of contents.
Public Const HH_DISPLAY_INDE X = &H2 ' Display the index.
Public Const HH_DISPLAY_SEAR CH = &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$(strFullPa th, Len(strFullPath ) _
- Len(Dir(strFull Path)))

' MsgBox "App path is " & strAppPath

GetAppPath = strAppPath

Exit Function

Then the cmd button code in the Form's class module was:

Private Sub cmdHTMLHelp_Cli ck()
On Error GoTo Err_cmdHTMLHelp _Click
HtmlHelp 0, GetAppPath & "db1.chm", HH_HELP_CONTEXT ,
1000

Exit_cmdHTMLHel p_Click:
Exit Sub

Err_cmdHTMLHelp _Click:
MsgBox Err.Description
Resume Exit_cmdHTMLHel p_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.adelaid e.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_TOPI C = &H0 ' Display the help
file.
Public Const HH_DISPLAY_TOC = &H1 ' Display the
table of contents.
Public Const HH_DISPLAY_INDE X = &H2 ' Display the
index.
Public Const HH_DISPLAY_SEAR CH = &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
5082
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 single file and do not have to change each and every page. I have the Java scripting in a common .Js file but have not been able to find a way to do this with my html content.
0
6441
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 tags in this text file to well formed XHTML tags). The contents of the file contain html tags and the data in those tags. eg., <table cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <TBODY> <tr> <td width="48%"></td> <td...
15
4787
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 button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
59
7073
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 http-equiv="Content-Type" content="text/html;
3
2641
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 running into some PHP behavior that I do not understand in PHP 5.1.2. I need to parse the HTML from the following carefully constructed URI:
8
3356
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 the folder in which the all the 4 files (3 HTML + 1 ASP) reside & select Index.html (by clicking with the mouse or by using the arrow keys on the keyboard), strangely the Windows "File Download" dialog box (with 'Open', 'Save', 'Cancel', 'More...
15
5288
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 show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
10
6988
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 of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
42
8985
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 readable HTML? Santander
0
9932
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9778
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5784
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4602
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3228
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.