reading list variables from code
Posted: Tue May 31, 2011 3:02 am
Hi!
I am currently working on reports which use parameters set by external C# application, but first I need to get these parameters, their types and values. I use the following code
This works fine for primitive types but I am experiencing problems when reading list types (LongList, StringList), the ValueObject is null even when I set items in the Designer for that variable. How can I retrieve the items defined for these lists?
I am currently working on reports which use parameters set by external C# application, but first I need to get these parameters, their types and values. I use the following code
Code: Select all
Console.WriteLine("name " + report.Dictionary.Variables[param.name].Name);
Console.WriteLine("type " + report.Dictionary.Variables[param.name].Type);
Console.WriteLine("obj " + report.Dictionary.Variables[param.name].ValueObject);