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
-
- Posts: 37
- Joined: Wed Oct 11, 2006 3:44 am
-
- Posts: 37
- Joined: Wed Oct 11, 2006 3:44 am
Variables with category
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
Stimulsoft.Report.Dictionary.StiVariable variable = report.Dictionary.Variables["MyVariable"] is null
Stimulsoft.Report.Dictionary.StiVariable variable = report.Dictionary.Variables["MyCategory.MyVariable"] is null
Ian
-
- Posts: 37
- Joined: Wed Oct 11, 2006 3:44 am
Variables with category
Must have been me, can now access as usual using report.Dictionary.Variables["MyVariable"]
Go figure...
Ian
Go figure...
Ian