I am currently working with a report that incorporates a variety of parameters. My objective is to execute the report with predefined values. While I am able to assign values to all parameter types without issue, I encounter difficulties specifically with the GuidList type.
Code: Select all
var stiVariable = stiReport.Dictionary.Variables[anyVariable];
Code: Select all
stiVariable.ValueObject = true/false;
stiVariable.ValueObject = "string";
stiVariable.ValueObject = new Guid(guidValue);
stiVariable.ValueObject = new GuidList(new Guid(guidValue));
I've noticed that there is no implementation of any kind of list object in ValueObject's setter (StiVariable.cs => private void SetValue(object value))
The operation completes without throwing any exceptions, yet the stiVariable.ValueObject and Value properties remain null. This issue persists despite the necessity to run the report with multiple GUID selections.
Would you have any insights or suggestions to resolve this matter?
Thanks.