Inheritance on FR 4 VCL
Hi,
I try to use inheritance in FastReport. I made a first .fr3 on design with only a PageHeader and a PageFooter.
I put this file in my project's directory. I put a new TfrxReport object on my form, open it and in report options, inheritance tab I select the radio button Inherit from base report : and select my .fr3 file
On the new frxReport component my template PageHeader & PageFooter appear correctly with a lock item on it.
First problem : if I close my form and open it again a dialog show with message : [TITLE] Error Redaing Form [MESSAGE] Duplicate name : Ignore the error and continue ? NOTE : Ignoring the error may cause components to be deleted or property values to be lost. [BUTTONS] Ignore Cancel Ignore All
This dialog happen every time I reopen the form
Second problem : this option seem to copy from template and not inherit like inheritance in VCL form for example. Is there a possibility to inherit a report from a component in datamodule for example withoout export it as a file in project directory ?
Thanks, CyrilG
I try to use inheritance in FastReport. I made a first .fr3 on design with only a PageHeader and a PageFooter.
I put this file in my project's directory. I put a new TfrxReport object on my form, open it and in report options, inheritance tab I select the radio button Inherit from base report : and select my .fr3 file
On the new frxReport component my template PageHeader & PageFooter appear correctly with a lock item on it.
First problem : if I close my form and open it again a dialog show with message : [TITLE] Error Redaing Form [MESSAGE] Duplicate name : Ignore the error and continue ? NOTE : Ignoring the error may cause components to be deleted or property values to be lost. [BUTTONS] Ignore Cancel Ignore All
This dialog happen every time I reopen the form
Second problem : this option seem to copy from template and not inherit like inheritance in VCL form for example. Is there a possibility to inherit a report from a component in datamodule for example withoout export it as a file in project directory ?
Thanks, CyrilG
Comments
inheritance in fr is not like inheriting from the vcl.
read both the programmers manual and the user manual on inheritance.