Variables with category

Stimulsoft Reports.NET discussion
Post Reply
IanMcCarthy
Posts: 37
Joined: Wed Oct 11, 2006 3:44 am

Variables with category

Post 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
IanMcCarthy
Posts: 37
Joined: Wed Oct 11, 2006 3:44 am

Variables with category

Post 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
IanMcCarthy
Posts: 37
Joined: Wed Oct 11, 2006 3:44 am

Variables with category

Post by IanMcCarthy »

Must have been me, can now access as usual using report.Dictionary.Variables["MyVariable"]

Go figure...

Ian
Post Reply