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

After Registering "No Editor Registered For this Component"

edited October 2005 in End User
Please see the code below.
I can register this component and its working. when I drop it on the form
when I try to Right click on it and click on "Report Designer..."
I got the error saying "No Editor Registered for this Component"

What i'm missing here?


unit uTenReportBuilder;

interface

uses Classes, uCollection, ppReport, uSQL;

type
TppReportEx = class(TppReport)
private
protected

public
constructor Create( Owner: tComponent); override;
destructor Destroy; override;

published

end;

procedure Register;

implementation

uses uTenProc, utenTypes;


procedure Register;
begin
RegisterComponents('RBuilder', [TppReportEx]);
end;

{ TppReportEx }

constructor TppReportEx.Create(Owner: tComponent);
begin
inherited Create( Owner);
end;

destructor TppReportEx.Destroy;
begin
inherited Destroy;
end;

end.


Thanks in advance.
-Bhoj

Comments

  • edited October 2005

    A component editor must be registered for the component. For an example,
    check out the code in ppRegPro.pas.




    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2005
    I am sorry after I did the RegisterComponent

    RegisterComponentEditor(TppReportEX, TppReportComponentEditor);
    It still give me the same error any help

    Code looke like this now.

    RegisterComponentEditor(TppReportEx, TppReportComponentEditor);

    Thanks
    -Bhoj

  • edited October 2005

    ReportBuilder requires an additional registeration:


    RegisterComponents('RBuilder', [TppReport]);

    RegisterComponentEditor(TppReport, TppReportComponentEditor);

    ppRegisterComponentDesigner(TppDesignerWindow, TppReport);





    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.