Overriding TppReport: new published properties and property-editors
Hy all,
I have expanded TppReport class into my TLsppReport class with some
published properties.
First question:
Into the editor i can see those new properties but I cannot save it into
a template. So I have overriden Transfer method and it works fine.
Is it correct?
Second Question:
for a property Named PDFFileName I have registered a property editor to
show the opendialog window.
I have created a TppPDFFileNameDialogItem class derived from
TppInspectorFileNameDialogItem and implemented some method like
GetFilter to customize it.
After that I've notice that I can set a value in the property editor of
the Reportbuilder Editor only passing thorough the open dialog.
If I write manually the file name or deleting it, I cannot do it!
Debugging RB Sources I've notice that the "SetDisplayValue" of the
TppPDFFileNameDialogItem is not implemented. In fact if I try to make
the same thing on another property with the same property editor class
(eg. TextFileName) I have the same problem.
But implementing this method it works correctly:
procedure TppPDFFileNameDialogItem.SetDisplayValue(const Value: string);
begin
SetFileName(Value);
end;
I suppose there is a bug into TppPDFFileNameDialogItem class.
It's correct?
thanks.
bye
Carlo
I have expanded TppReport class into my TLsppReport class with some
published properties.
First question:
Into the editor i can see those new properties but I cannot save it into
a template. So I have overriden Transfer method and it works fine.
Is it correct?
Second Question:
for a property Named PDFFileName I have registered a property editor to
show the opendialog window.
I have created a TppPDFFileNameDialogItem class derived from
TppInspectorFileNameDialogItem and implemented some method like
GetFilter to customize it.
After that I've notice that I can set a value in the property editor of
the Reportbuilder Editor only passing thorough the open dialog.
If I write manually the file name or deleting it, I cannot do it!
Debugging RB Sources I've notice that the "SetDisplayValue" of the
TppPDFFileNameDialogItem is not implemented. In fact if I try to make
the same thing on another property with the same property editor class
(eg. TextFileName) I have the same problem.
But implementing this method it works correctly:
procedure TppPDFFileNameDialogItem.SetDisplayValue(const Value: string);
begin
SetFileName(Value);
end;
I suppose there is a bug into TppPDFFileNameDialogItem class.
It's correct?
thanks.
bye
Carlo
This discussion has been closed.
Comments
published properties.
2. Thanks for reporting this. It will be added to the code base going
forward.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com