Help with creating new Varibles

Hi, Everybody,

Just recently purchased FastReport for Delphi (v4.7.22) and have printed out and read the User Manual. There is a lot of learn, so thought I would start slowly and just get a caption from my main form to display on a page header.

So, from Report|Variables I created a new category and a new variable; set the expression to "Mainform.LCustName.Caption".

Unfortunately this causes an "Undeclared Identifier" error.

Is this a scoping problem (the reporting code cannot 'see' the Mainform object)? or have I misunderstood how to create and assign variables?

Thanks for any advice,
Regards,
PhilW.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:44PM
    you are correct the report cannot see the main form.
    For passing values to categorized report variables from delphi read the programmer's manual chapter on variables

Leave a Comment