Parameters from a query in Delphi

I am a beginner in fastReport this is my problem:
In delphi I have a query with two parameters. I have a form with a TfrxReport component. This form uses the unit where I placed the two parameters into two variables. My goal is to print in the report header the two parameters or variables; I use Onbeforeprint, but an error occurs : variables not known.

Can you help me, please?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:28AM
    read the progammers manual on working with a list of variables in the report and how to pass values to them.
    best to do it after loading report and before calling showreport or preparereport.
    frxreport1.loadfromfile('path&filename.fr3);
    frxreport1.variables := delphi var value;

    in the report create your variables if you wan't (optional the above line will create the variable if it does not exists or pass the value if it does.
    in the report,
    in the text object use [myvarname]
    read the user manual on displaying variables in a memo.
  • edited 2:28AM
    Thank you very much. It's works.

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.