In my app, I am passing the hashtable using this code:
Code: Select all
if (report.Dictionary.Variables["statusDictionary"] != null) {
report.Dictionary.Variables["statusDictionary"].Type = typeof(Hashtable);
Hashtable testHash = new Hashtable();
testHash.Add("0","Jen");
testHash.Add("1", "Roy");
report.Dictionary.Variables["statusDictionary"].ValueObject = testHash;
}
Code: Select all
Hashtable statuses = (Hashtable)this.statusDictionary;
this.Label5.Text = statuses.Count.ToString();
Any ideas? I'm using build 2009.2.411