How to access external variables on reports events?

Hi

onHeaderbeforeprint event, how can I access external vars to set internal fastreport memo vars?

I wouldo like to set

memo1.text := sCompanyName (external vars with company name)
memo2.text := sCompanyAddress (external vars with company address)

Best regards

Sergio

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:16PM
    after loading the report and before running the report you can pass the values to the report variables
    or you can give the report variables no value and write code for the tfrxreport component's
    ongetvalue event. read the programmers manual on working with variables.
  • hsmhsm
    edited 9:16PM
    doncht wrote: »
    Quick question on this please regarding the programmers manual. Will it be accessible even if we haven't purchased anything yet?

    its here
    http://www.fast-report.com/public_download...erManual-en.pdf
  • edited 9:16PM
    It's easy:

    1. Create a memo var on your report designer, ex: [myText]
    2. Inside your Show Report button, add this: frxReport1.Variables.Variables := #39 + 'Company: ' + sCompanyName + #39;

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.