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

Custom Report Component

edited October 2006 in Component Writing
I'm attempting to make a custom TppReport component using Delphi 7 and
Report Builder 7.02. I have no problems creating the component but I'm
having issues with invoking the default editors.

I've created my own report component that is a subclass of TppReport and I
added no additonal code to the class. When I add the component to the form
and double-click edit the report, I receive the following message: No
editor registered for this component.

Any help would be greated appreciated.

Thanks in advance.

Comments

  • edited October 2006
    - check out RBuilder\Source\ppRegPro.pas. There are a couple of
    registrations that you need to add.

    - I just looked at the old threads in this newsgroup and found one dated
    1/16/2002 with a subject of 'Registering TppReportComponentEditor'. From a
    response I made to that thread...

    uses
    ppDsIntf;

    RegisterComponentEditor(TppReport, TppReportComponentEditor);
    ppRegisterComponentDesigner(TppDesignerWindow, TppReport);


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2006
    That did it. I had the first register line but not the second.

    Thanks again.

This discussion has been closed.