After Registering "No Editor Registered For this Component"
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
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
This discussion has been closed.
Comments
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
RegisterComponentEditor(TppReportEX, TppReportComponentEditor);
It still give me the same error any help
Code looke like this now.
RegisterComponentEditor(TppReportEx, TppReportComponentEditor);
Thanks
-Bhoj
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