Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Designer Help

edited April 2009 in General
I see that 11.04 has a fix: "The Designer.EnableHelp and HelpFile properties
were not being honored."

Sorry to report that this is not true (using D 2007 and WinXP3). EnableHelp
is set True and HelpFile is set to RBUILDER.CHM, which is a help file I
created for end users (the regular RBuilder.hlp is of little use or
downright confusing to end users). Using the menu command Help | Help Topics
does not display any help.

I've also tried to redirect Application.HelpFile to RBuilder.chm before
starting report explorer. Still no help file is displayed.

I've also tried both of the above using RBuilder.hlp/cnt which I copied from
the files installed. No go there, either.

This has been a problem for quite a while and the reported fix does not seem
to fix it.

--
Steven S. Weston

Comments

  • edited April 2009
    I'll also add that using the OnHelp event to set aHelpFile has no positive
    effect either.

    --
    Steven S. Weston
  • edited April 2009

    1. ReportBuilder's internal/automatic help invokation currently works for
    WinHelp and Help2, but not HtmlHelp. (I will add HtmlHelp to the requested
    features list).

    2. The WinHelp example you tried with RBuilder.hlp should work. Make sure
    you include 'WinHelpViewer' in the 'uses' clause.

    3. Here is an example of displaying HTML help.

    uses
    HtmlHelpViewer;

    procedure TForm1.ppDesigner1Help(Sender: TObject; var aHelpFile, aKeyphrase:
    string; var aCallHelp: Boolean);
    begin

    // invoke help
    Application.HelpFile := 'C:\\myRBHelpFile.chm';
    Application.HelpCommand(HELP_CONTENTS, 0);

    // tell RB it's been handled
    aCallHelp := False;

    end;



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2009
    Nard,

    That works -- thanks. I think we need a similar OnHelp event in
    TppReportExplorer.

    --
    Steven S. Weston
  • edited April 2009
    > I think we need a similar OnHelp event in TppReportExplorer.

    For now, you can attach an event-handler to the ReportExplorer Help Topics
    menu item click

    Add this code to the FormCreate of your main end-user form.

    uses
    ppExpFrm,
    ppRptExpCommon;

    procedure TmyEndUserSolution.FormCreate(Sender: TObject);

    TppReportExplorerForm(ppReportExplorer1.Form).MenuBar.HelpMenu.HelpTopics.OnClick
    := HelpTopicsClickEvent;

    end;

    procedure TmyEndUserSolution.HelpTopicsClickEvent(Sender: TObject);
    begin
    // invoke help

    end;

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2009
    That also works. Thanks, Nard.

    --
    Steven S. Weston
This discussion has been closed.