Variables are not shown

edited March 2007 in FastReport 4.0
Hello,

we want use FastReport 4 for one of our products. But adding variables in our code seems to fail. Here's a part of our code:

frxReport.LoadFromFile('Endlos.fr3');
frxReport.Variables.Clear;
frxReport.Variables := Null;
frxReport.Variables.AddVariable('Auftraggeber', 'Name', '''' + 'SomeText' + '''');
frxReport.PrepareReport;
frxReport.Print;

In the Designer we use a Memo field with the Expression [Name]. But none of our variables is printed.

Where's my fault? Thank you ;)

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:32PM
    you probably missed the report components name.
    ie frxreport1. unless you renamed it to frxreport or
    you have set a property of the memo wrong visible, printable etc

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.