Display custom Helpfile (chm) from menu/tool bar

D

dotun

Hi Al

Is there a straight forward way, a simple way, to display a custom help file created using html help worksho
by simply clicking on a custom menu/tool bar

I tried using hyperlinks, but I get the waring about open dangerous files before it opens

i am at the end of a long an painful development project an don't want to delay another 2/3 mths
mastering html help :

Thank Pete, your advice about using "filtered web" worked like a charm. I use XP developer, hence I did not need the download as the option is already built-in. I never had a clue till you mentioned it th

Cheer
 
J

Jonathan West

Hi dotun

Put the following code into a separate module

Option Explicit

Public Const HH_DISPLAY_TOPIC = &H0
Public Const HH_HELP_CONTEXT = &HF

Public Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _
(ByVal hwndCaller As Long, _
ByVal pszFile As String, _
ByVal uCommand As Long, _
dwData As Any) As Long


This can then be called from any macro with a line of code which looks
something like this

HtmlHelp 0, strHelp, HH_DISPLAY_TOPIC, ByVal strTopic

where strHelp is the full pathname of your HTML Help file, and strTopic is
the name of the page within the HTML Help file which wou want to open.

--
Regards
Jonathan West - Word MVP
http://www.multilinker.com
Please reply to the newsgroup


dotun said:
Hi All

Is there a straight forward way, a simple way, to display a custom help
file created using html help workshop
by simply clicking on a custom menu/tool bar ?

I tried using hyperlinks, but I get the waring about open dangerous files before it opens.

i am at the end of a long an painful development project an don't want to delay another 2/3 mths
mastering html help :)

Thank Pete, your advice about using "filtered web" worked like a charm. I
use XP developer, hence I did not need the download as the option is already
built-in. I never had a clue till you mentioned it tho
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top