Help with creating new Varibles

edited 10:04PM in FastReport 4.0
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 10:04PM
    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

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.