Search code examples
delphidelphi-7delphi-2010

HTML Help in Delphi using EC Software Help Suite (EHS)


I am using EC Software Help Suite (EHS) with Delphi 2010 and I am trying to show a HTML Help Fil e(*.chm) using the HelpROuter component

procedure TfrmMain.Button3Click(Sender: TObject);
begin
 //load CHM file here
 HelpRouter1.Helpfile:= ExtractFilePath(Application.ExeName) + 'VPUCDS.chm';
 HelpRouter1.HelpContent;
end;

It doe not display the help file. What am i doing wrong?


Solution

  • I don't use EHS, but in my MainForm.FormCreate, I have:

    Application.HelpFile := extractfilepath(Application.Exename) + 'behold.chm';
    

    Then to bring up the Contents, I use:

    Application.HelpShowTableOfContents;
    

    That works for me.