We have tried "RegData" method but after loading it treats the string variable like a "Char Array" and we tried the following code before loading the report with no success:
Code: Select all
public void RegVar(string key, object value)
{
if(!this.report.IsCompiled)
{
this.report.Compile();
}
if (this.report.Dictionary.Variables.Contains(key))
{
this.report.Dictionary.Variables[key].ValueObject = value;
this.report.Dictionary.Variables[key].Value = value.ToString();
}
else
{
this.report.Dictionary.Variables.Add(new StiVariable(key, value));
}
}
Code: Select all
public void RegVar(string key, object value)
{
this.report[key] = value;
}