how to access a script variable from Delphi; prin
1.
PrinterOptions.Printer returns always 'Default', but I need the name of the
Printer. Even when I change the printer in Print Dialog, it would return
'Default' again.
I need a printer log, it is important to know which printer exact has
printed the report.
2.
I try to create a variable on the top of the script, to give it a value and
then to access it from Delphi:
FastReport:
Delphi:
It returns always null!
in 2.53 was possible to access the variable in this way:
PrinterOptions.Printer returns always 'Default', but I need the name of the
Printer. Even when I change the printer in Print Dialog, it would return
'Default' again.
I need a printer log, it is important to know which printer exact has
printed the report.
2.
I try to create a variable on the top of the script, to give it a value and
then to access it from Delphi:
FastReport:
[B]var[/B]
PrintLog:string;
PrintLog := 'test';
Delphi:
P:=frxReport1.Script.Variables ['PrintLog'];
 if not VarIsNull(p) then
showmessage(Vartostr(P));
It returns always null!
in 2.53 was possible to access the variable in this way:
P:=frVariables['PrintLog'];
And now?
Comments
How to access script variable from Delphi?
Thanks.
But I receive always NULL , I have tried many times)!!!