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

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:56AM
    turn off storeindfm property of tfrxreport component.
    inheritance in fr is not like inheriting from the vcl.
    read both the programmers manual and the user manual on inheritance.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.