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
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
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.
its here
http://www.fast-report.com/public_download...erManual-en.pdf
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;