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 8:59AM
    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 8:59AM
    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 8:59AM
    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