Access system variables from delphi unit.
I have figured out how to access variables I have added, but I'd like to access the System variables from my project (not within the report). Is this possible?
<!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->
...
var
i: integer;
...
frxrRelease.PrepareReport(TRUE); // this is set to doublepass...
i := frxrRelease.Variables.IndexOf('TotalPages');
showmessage( string(frxrRelease.Variables.Items.Value) );
...
<!--fontc--></span><!--/fontc-->
This returns A/V with a -1 for i. It seems to work for variables I have created, just not the System variables.
Thanks,
michael
SCRATCH. Found it after just a little more:
<!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->
showmessage(inttostr(frxrRelease.Engine.TotalPages));
<!--fontc--></span><!--/fontc-->
I am guessing the others are in there somewhere also?
Thanks again,
michael.
<!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->
...
var
i: integer;
...
frxrRelease.PrepareReport(TRUE); // this is set to doublepass...
i := frxrRelease.Variables.IndexOf('TotalPages');
showmessage( string(frxrRelease.Variables.Items.Value) );
...
<!--fontc--></span><!--/fontc-->
This returns A/V with a -1 for i. It seems to work for variables I have created, just not the System variables.
Thanks,
michael
SCRATCH. Found it after just a little more:
<!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->
showmessage(inttostr(frxrRelease.Engine.TotalPages));
<!--fontc--></span><!--/fontc-->
I am guessing the others are in there somewhere also?
Thanks again,
michael.