Page 1 of 1

How do I access variables through code?

Posted: Thu Jun 22, 2006 4:30 am
by EDV Gradl
When I do:

report.Load("Variables.mrt");
report.Compile();
report["VariableName"] = "Value";

I get an error, Field VariableName not found, but the variable exist. So how Do I acces it? Or can I get a list of all variables in the report via code?

Thanks!


How do I access variables through code?

Posted: Thu Jun 22, 2006 4:50 am
by Edward
EDV wrote:When I do:
report.Load("Variables.mrt");
report.Compile();
report["VariableName"] = "Value";
I get an error, Field VariableName not found, but the variable exist. So how Do I acces it? Or can I get a list of all variables in the report via code?
Thanks!
Check Property ReadOnly of VariableName is set in false in Report.

How do I access variables through code?

Posted: Thu Jun 22, 2006 5:09 am
by EDV Gradl
That did the trick. Thanks!