Page 1 of 1

Variables with category

Posted: Wed Oct 18, 2006 8:47 am
by IanMcCarthy
Create variable and add to report:

variable = new Stimulsoft.Report.Dictionary.StiVariable("MyCategory", "MyVariable", typeof(string));
report.Dictionary.Variables.Add(variable);

It appears in report under Variables | MyCategory | MyVariable, OK

How can I gain access to it afterwards?

Stimulsoft.Report.Dictionary.StiVariable variable = report.Dictionary.Variables["ReportTitle"] is null
Stimulsoft.Report.Dictionary.StiVariable variable = report.Dictionary.Variables["dB35.ReportTitle"] is null

And report.Dictionary.Variables has zero members.

Ian

Variables with category

Posted: Wed Oct 18, 2006 9:20 am
by IanMcCarthy
As you may have guessed, I meant to say:

Stimulsoft.Report.Dictionary.StiVariable variable = report.Dictionary.Variables["MyVariable"] is null
Stimulsoft.Report.Dictionary.StiVariable variable = report.Dictionary.Variables["MyCategory.MyVariable"] is null

Ian

Variables with category

Posted: Wed Oct 18, 2006 9:25 am
by IanMcCarthy
Must have been me, can now access as usual using report.Dictionary.Variables["MyVariable"]

Go figure...

Ian